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 #1236

Merged

Conversation

GuySartorelli
Copy link
Member

@@ -68,7 +68,7 @@ class BlogPost extends DataObject
{
// ...

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

@@ -888,7 +888,7 @@ public function isCMSPreview()
* @return null|string
* @throws \SilverStripe\ORM\ValidationException
*/
public function CMSEditLink($directLink = false)
public function CMSEditLink($directLink = false): ?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($directLink = false): ?string
public function getCMSEditLink($directLink = false): ?string

@@ -27,7 +27,7 @@ class TestDataObjectWithCMSEditLink extends DataObject implements TestOnly
'ElementalArea',
];

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

@@ -19,7 +19,7 @@ public function getMimeType()
return null;
}

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/6/standardise-cmseditlink branch 2 times, most recently from 4342588 to c620bc6 Compare August 22, 2024 23:38
@GuySartorelli GuySartorelli force-pushed the pulls/6/standardise-cmseditlink branch from c620bc6 to b0acd41 Compare August 23, 2024 02:02
@emteknetnz emteknetnz merged commit e38593f into silverstripe:6 Aug 25, 2024
4 of 23 checks passed
@emteknetnz emteknetnz deleted the pulls/6/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