API Update method signature for CMSEditLink (#199)

This commit is contained in:
Guy Sartorelli 2024-08-26 09:58:32 +12:00 committed by GitHub
parent 9c2defe6ec
commit 791d49354d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ class ElementalBehatTestObject extends DataObject
{ {
private static $table_name = 'ElementalBehatTestObject'; private static $table_name = 'ElementalBehatTestObject';
public function CMSEditLink() public function getCMSEditLink(): ?string
{ {
$admin = ElementalBehatTestAdmin::singleton(); $admin = ElementalBehatTestAdmin::singleton();
$sanitisedClassname = str_replace('\\', '-', $this->ClassName); $sanitisedClassname = str_replace('\\', '-', $this->ClassName);