You are here

protected function RelationHandlerTrait::entityTypeManager in Group 2.0.x

Gets the entity type manager service.

Return value

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

File

src/Plugin/Group/RelationHandler/RelationHandlerTrait.php, line 71

Class

RelationHandlerTrait
Trait for group relation plugin handlers.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

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