function 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_generate

Code

protected function getEntityTypeManager() {
    if (!$this->entityTypeManager) {
        $this->entityTypeManager = \Drupal::entityTypeManager();
    }
    return $this->entityTypeManager;
}