You are here

protected function TempStoreTrait::getEntityTypeManager in Rules 8.3

Retrieves the entity type manager service if not already present.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/Ui/TempStoreTrait.php, line 134

Class

TempStoreTrait
Provides methods for modified rules components in temporary storage.

Namespace

Drupal\rules\Ui

Code

protected function getEntityTypeManager() {
  if (!isset($this->entityTypeManager)) {
    $this->entityTypeManager = \Drupal::service('entity_type.manager');
  }
  return $this->entityTypeManager;
}