Skip to content

Commit

Permalink
API Standardise extension hooks (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 27, 2024
1 parent e38593f commit ff0cbd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/ElementalAreasExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function ensureElementalAreasExist($elementalAreaRelations)
*
* @return void
*/
public function requireDefaultRecords()
protected function onRequireDefaultRecords()
{
if (!$this->supportsElemental()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/ElementalPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function updateAnchorsOnPage(array &$anchors): void
});
}

public function MetaTags(&$tags)
protected function updateMetaTags(&$tags)
{
if (!Controller::has_curr()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion tests/Src/ValidationFailedExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ValidationFailedExtension extends Extension implements TestOnly
{
public const INVALID_TITLE_MESSAGE = '%s is invalid';

public function validate(ValidationResult $result)
protected function updateValidate(ValidationResult $result)
{
$result->addFieldError('Title', sprintf(static::INVALID_TITLE_MESSAGE, ClassInfo::shortName($this->owner)));
}
Expand Down

0 comments on commit ff0cbd6

Please sign in to comment.