You are here

public function PageManagerController::editParameterTitle in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Controller/PageManagerController.php \Drupal\page_manager_ui\Controller\PageManagerController::editParameterTitle()

Route title callback.

Parameters

\Drupal\page_manager\PageInterface $page: The page entity.

string $name: The parameter context name.

Return value

string The title for the parameter edit form.

1 string reference to 'PageManagerController::editParameterTitle'
page_manager_ui.routing.yml in page_manager_ui/page_manager_ui.routing.yml
page_manager_ui/page_manager_ui.routing.yml

File

page_manager_ui/src/Controller/PageManagerController.php, line 174
Contains \Drupal\page_manager_ui\Controller\PageManagerController.

Class

PageManagerController
Provides route controllers for Page Manager.

Namespace

Drupal\page_manager_ui\Controller

Code

public function editParameterTitle(PageInterface $page, $name) {
  return $this
    ->t('Edit @label parameter', [
    '@label' => $page
      ->getParameter($name)['label'],
  ]);
}