protected function ControllerBase::entityTypeManager
protected ControllerBase::entityTypeManager()
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
File
- core/lib/Drupal/Core/Controller/ControllerBase.php, line 147
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; }
© 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!Controller!ControllerBase.php/function/ControllerBase::entityTypeManager/8.1.x