public EntityController::addTitle($entity_type_id)
Provides a generic add title callback for an entity type.
string $entity_type_id: The entity type ID.
string The title for the entity add page.
public function addTitle($entity_type_id) { $entity_type = $this->entityTypeManager->getDefinition($entity_type_id); return $this->t('Add @entity-type', ['@entity-type' => $entity_type->getLowercaseLabel()]); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Controller!EntityController.php/function/EntityController::addTitle/8.1.x