You are here

public function EntityLegalController::documentEditPageTitle in Entity Legal 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Controller/EntityLegalController.php \Drupal\entity_legal\Controller\EntityLegalController::documentEditPageTitle()
  2. 4.0.x src/Controller/EntityLegalController.php \Drupal\entity_legal\Controller\EntityLegalController::documentEditPageTitle()

Page title callback for the Entity Legal Document edit form.

Parameters

\Drupal\entity_legal\EntityLegalDocumentInterface $entity_legal_document: The Entity Legal Document entity.

1 string reference to 'EntityLegalController::documentEditPageTitle'
entity_legal.routing.yml in ./entity_legal.routing.yml
entity_legal.routing.yml

File

src/Controller/EntityLegalController.php, line 64

Class

EntityLegalController
Class EntityLegalController.

Namespace

Drupal\entity_legal\Controller

Code

public function documentEditPageTitle(EntityLegalDocumentInterface $entity_legal_document) {
  return $this
    ->t('Edit %label', [
    '%label' => $entity_legal_document
      ->label(),
  ]);
}