protected function DevelGenerateBase::getEntityTypeManager in Devel 4.x
Same name and namespace in other branches
- 8.3 devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getEntityTypeManager()
- 8.2 devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getEntityTypeManager()
Gets the entity type manager service.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager service.
File
- devel_generate/
src/ DevelGenerateBase.php, line 185
Class
- DevelGenerateBase
- Provides a base DevelGenerate plugin implementation.
Namespace
Drupal\devel_generateCode
protected function getEntityTypeManager() {
if (!$this->entityTypeManager) {
$this->entityTypeManager = \Drupal::entityTypeManager();
}
return $this->entityTypeManager;
}