-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Change public CMSEditLink to protected updateCMSEditLink #1809
API Change public CMSEditLink to protected updateCMSEditLink #1809
Conversation
4a813d5
to
a9faef1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending question on silverstripe/silverstripe-framework#11338 (review)
code/Forms/UsedOnTable.php
Outdated
@@ -102,7 +102,7 @@ public function usage(HTTPRequest $request) | |||
'id' => $dataObject->ID, | |||
'title' => $dataObject->getTitle() ?: _t(__CLASS__ . '.UNTITLED', 'Untitled'), | |||
'type' => ucfirst($dataObject->i18n_singular_name() ?? ''), | |||
'link' => $dataObject->hasMethod('CMSEditLink') ? $dataObject->CMSEditLink() : null, | |||
'link' => $dataObject->CMSEditLink(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'link' => $dataObject->CMSEditLink(), | |
'link' => $dataObject->getCMSEditLink(), |
code/Forms/UsedOnTable.php
Outdated
@@ -115,7 +115,7 @@ public function usage(HTTPRequest $request) | |||
foreach ($ancestorDataObjects as $ancestorDataObject) { | |||
$tableRowData['ancestors'][] = [ | |||
'title' => $ancestorDataObject->getTitle() ?: _t(__CLASS__ . '.UNTITLED', 'Untitled'), | |||
'link' => $ancestorDataObject->hasMethod('CMSEditLink') ? $ancestorDataObject->CMSEditLink() : null, | |||
'link' => $ancestorDataObject->CMSEditLink(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'link' => $ancestorDataObject->CMSEditLink(), | |
'link' => $ancestorDataObject->getCMSEditLink(), |
@@ -28,7 +28,7 @@ public function getMimeType() | |||
return 'text/html'; | |||
} | |||
|
|||
public function CMSEditLink() | |||
public function CMSEditLink(): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function CMSEditLink(): ?string | |
public function getCMSEditLink(): ?string |
a9faef1
to
e048241
Compare
e048241
to
c786f81
Compare
Relies on changes made in silverstripe/silverstripe-framework#11338
Issue