You are here

public function EntityLegalController::documentVersionAddFormTitle 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::documentVersionAddFormTitle()
  2. 4.0.x src/Controller/EntityLegalController.php \Drupal\entity_legal\Controller\EntityLegalController::documentVersionAddFormTitle()

Page title callback for the Entity Legal Document Version add form.

Parameters

\Drupal\entity_legal\EntityLegalDocumentInterface $entity_legal_document: The entity legal document.

Return value

string The page title.

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

File

src/Controller/EntityLegalController.php, line 141

Class

EntityLegalController
Class EntityLegalController.

Namespace

Drupal\entity_legal\Controller

Code

public function documentVersionAddFormTitle(EntityLegalDocumentInterface $entity_legal_document) {
  return $this
    ->t('Add %type legal document version', [
    '%type' => $entity_legal_document
      ->label(),
  ]);
}