public function EntityCreateController::addPageTitle in Entity API 8.0
The title callback for the add page.
Parameters
string $entity_type_id: The entity type ID.
Return value
string The page title.
File
- src/
Controller/ EntityCreateController.php, line 123 - Contains \Drupal\entity\Controller\EntityCreateController.
Class
- EntityCreateController
- A generic controller for creating entities.
Namespace
Drupal\entity\ControllerCode
public function addPageTitle($entity_type_id) {
$entity_type = $this
->entityTypeManager()
->getDefinition($entity_type_id);
return $this
->t('Add @entity-type', [
'@entity-type' => $entity_type
->getLowercaseLabel(),
]);
}