public function PageManagerController::editPageTitle in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Controller/PageManagerController.php \Drupal\page_manager_ui\Controller\PageManagerController::editPageTitle()
Route title callback.
Parameters
string $machine_name: The page's machine_name.
string $tempstore_id: The temporary store identifier.
Return value
string The title for the page edit form.
1 string reference to 'PageManagerController::editPageTitle'
- 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 111 - Contains \Drupal\page_manager_ui\Controller\PageManagerController.
Class
- PageManagerController
- Provides route controllers for Page Manager.
Namespace
Drupal\page_manager_ui\ControllerCode
public function editPageTitle($machine_name, $tempstore_id) {
$cached_values = $this->tempstore
->get($tempstore_id)
->get($machine_name);
/** @var \Drupal\page_manager\PageInterface $page */
$page = $cached_values['page'];
return $this
->t('Edit %label page', [
'%label' => $page
->label(),
]);
}