Skip to content
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

Merged

Conversation

GuySartorelli
Copy link
Member

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'link' => $dataObject->CMSEditLink(),
'link' => $dataObject->getCMSEditLink(),

@@ -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(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'link' => $ancestorDataObject->CMSEditLink(),
'link' => $ancestorDataObject->getCMSEditLink(),

@@ -28,7 +28,7 @@ public function getMimeType()
return 'text/html';
}

public function CMSEditLink()
public function CMSEditLink(): ?string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function CMSEditLink(): ?string
public function getCMSEditLink(): ?string

@GuySartorelli GuySartorelli force-pushed the pulls/3/standardise-cmseditlink branch from a9faef1 to e048241 Compare August 22, 2024 03:43
@GuySartorelli GuySartorelli force-pushed the pulls/3/standardise-cmseditlink branch from e048241 to c786f81 Compare August 22, 2024 23:35
@emteknetnz emteknetnz merged commit a8b6f66 into silverstripe:3 Aug 25, 2024
8 of 14 checks passed
@emteknetnz emteknetnz deleted the pulls/3/standardise-cmseditlink branch August 25, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants