function TempStoreTrait::getEntityTypeManager
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\UiCode
protected function getEntityTypeManager() {
if (!isset($this->entityTypeManager)) {
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}
return $this->entityTypeManager;
}