You are here

public function PageManagerController::editAccessConditionTitle 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::editAccessConditionTitle()

Route title callback.

Parameters

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

string $condition_id: The access condition ID.

Return value

string The title for the access condition edit form.

File

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

Class

PageManagerController
Provides route controllers for Page Manager.

Namespace

Drupal\page_manager_ui\Controller

Code

public function editAccessConditionTitle(PageInterface $page, $condition_id) {
  $access_condition = $page
    ->getAccessCondition($condition_id);
  return $this
    ->t('Edit %label access condition', [
    '%label' => $access_condition
      ->getPluginDefinition()['label'],
  ]);
}