You are here

public function WorkbenchAccessByRoleForm::pageTitle in Workbench Access 8

Returns a dynamic page title for the route.

Parameters

\Drupal\workbench_access\Entity\AccessSchemeInterface $access_scheme: Access scheme.

string $id: The section id.

Return value

string A page title.

1 string reference to 'WorkbenchAccessByRoleForm::pageTitle'
workbench_access.routing.yml in ./workbench_access.routing.yml
workbench_access.routing.yml

File

src/Form/WorkbenchAccessByRoleForm.php, line 137

Class

WorkbenchAccessByRoleForm
Configure Workbench Access per role.

Namespace

Drupal\workbench_access\Form

Code

public function pageTitle(AccessSchemeInterface $access_scheme, $id) {
  return $this
    ->t('Roles assigned to %label', [
    '%label' => $access_scheme
      ->label(),
  ]);
}