Skip to content

Commit

Permalink
Merge pull request #92 from localgovdrupal/fix/91-title-callback-para…
Browse files Browse the repository at this point in the history
…meters

Fix/91 title callback parameters
  • Loading branch information
ekes authored Nov 20, 2020
2 parents 4f4bf63 + 7e03e71 commit 9b51b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AlertBannerEntityHtmlRouteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getRoutes(EntityTypeInterface $entity_type) {
}

if ($settings_form_route = $this->getSettingsFormRoute($entity_type)) {
$collection->add("$entity_type_id.settings", $settings_form_route);
$collection->add("{$entity_type_id}.settings", $settings_form_route);
}

if ($status_form_route = $this->getStatusFormRoute($entity_type)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/AlertBannerEntityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public function revisionOverview(AlertBannerEntityInterface $localgov_alert_bann
/**
* Publish or Unpublish title for alert banner status change form.
*/
public function getStatusFormTitle(AlertBannerEntityInterface $alert_banner) {
return $alert_banner->isPublished() ? $this->t('Remove banner') : $this->t('Put banner live');
public function getStatusFormTitle(AlertBannerEntityInterface $localgov_alert_banner) {
return $localgov_alert_banner->isPublished() ? $this->t('Remove banner') : $this->t('Put banner live');
}

}

0 comments on commit 9b51b5a

Please sign in to comment.