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 Update method signature for CMSEditLink #463

Merged

Conversation

GuySartorelli
Copy link
Member

* @return string
*/
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

return $link->CMSEditLink();
}
return null;
return $link->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
return $link->CMSEditLink();
return $link->getCMSEditLink();

if (method_exists($restoredItem, 'CMSEditLink') &&
$restoredItem->CMSEditLink()) {
$restoredID = sprintf('<a href="%s">%s</a>', $restoredItem->CMSEditLink(), $restoredID);
$editLink = $restoredItem->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
$editLink = $restoredItem->CMSEditLink();
$editLink = $restoredItem->getCMSEditLink();

@GuySartorelli GuySartorelli force-pushed the pulls/3/standardise-cmseditlink branch from dc13b64 to e403051 Compare August 22, 2024 23:40
@emteknetnz emteknetnz merged commit eab840e into silverstripe:3 Aug 25, 2024
5 of 7 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