You are here

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

Route title callback.

Parameters

\Drupal\page_manager\PageVariantInterface $page_variant: The page variant entity.

string $condition_id: The selection condition ID.

Return value

string The title for the selection condition edit form.

File

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

Class

PageManagerController
Provides route controllers for Page Manager.

Namespace

Drupal\page_manager_ui\Controller

Code

public function editSelectionConditionTitle(PageVariantInterface $page_variant, $condition_id) {
  $selection_condition = $page_variant
    ->getSelectionCondition($condition_id);
  return $this
    ->t('Edit %label selection condition', [
    '%label' => $selection_condition
      ->getPluginDefinition()['label'],
  ]);
}