protected function ControllerBase::entityTypeManager in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::entityTypeManager()
- 9 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::entityTypeManager()
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
37 calls to ControllerBase::entityTypeManager()
- BlockAddController::blockAddConfigureForm in core/
modules/ block/ src/ Controller/ BlockAddController.php - Build the block instance add form.
- BlockListController::listing in core/
modules/ block/ src/ Controller/ BlockListController.php - Shows the block administration page.
- BookController::bookRender in core/
modules/ book/ src/ Controller/ BookController.php - Prints a listing of all books.
- CommentController::commentPermalink in core/
modules/ comment/ src/ Controller/ CommentController.php - Redirects comment links to the correct page depending on comment settings.
- CommentController::getReplyForm in core/
modules/ comment/ src/ Controller/ CommentController.php - Form constructor for the comment reply form.
File
- core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php, line 118
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\ControllerCode
protected function entityTypeManager() {
if (!isset($this->entityTypeManager)) {
$this->entityTypeManager = $this
->container()
->get('entity_type.manager');
}
return $this->entityTypeManager;
}