API Set extension hook implementation visibility to protected

This commit is contained in:
Steve Boyd 2024-05-16 17:23:55 +12:00
parent 72422f1d2c
commit 3a85b7782f
5 changed files with 6 additions and 6 deletions

View File

@ -90,7 +90,7 @@ class BlogFilter extends Lumberjack
/**
* {@inheritdoc}
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$excluded = $this->owner->getExcludedSiteTreeClassNames();

View File

@ -108,7 +108,7 @@ class BlogMemberExtension extends DataExtension
/**
* {@inheritdoc}
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$fields->removeByName('URLSegment');

View File

@ -491,7 +491,7 @@ class BlogPost extends Page
*
* Update the PublishDate to now if the BlogPost would otherwise be published without a date.
*/
public function onBeforePublish()
protected function onBeforePublish()
{
/**
* @var DBDatetime $publishDate

View File

@ -23,7 +23,7 @@ class BlogPostFeaturedExtension extends DataExtension
/**
* {@inheritdoc}
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
// Add the checkbox in.
$fields->addFieldToTab(

View File

@ -27,7 +27,7 @@ class BlogPostFilter extends DataExtension
* @param SQLSelect $query
* @param DataQuery $query
*/
public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
{
if (Controller::has_curr() && Controller::curr() instanceof LeftAndMain) {
@ -60,7 +60,7 @@ class BlogPostFilter extends DataExtension
* @param DataQuery $dataQuery
* @param DataObject $dataObject
*/
public function augmentLoadLazyFields(SQLSelect &$query, DataQuery &$dataQuery = null, $dataObject)
protected function augmentLoadLazyFields(SQLSelect &$query, DataQuery &$dataQuery = null, $dataObject)
{
$blogPostTable = DataObject::getSchema()->tableName(BlogPost::class);
$dataQuery->innerJoin(