You are here

public function WorkbenchAccessByUserForm::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 'WorkbenchAccessByUserForm::pageTitle'
workbench_access.routing.yml in ./workbench_access.routing.yml
workbench_access.routing.yml

File

src/Form/WorkbenchAccessByUserForm.php, line 265

Class

WorkbenchAccessByUserForm
Configure Workbench Access per user.

Namespace

Drupal\workbench_access\Form

Code

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