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\RelationHandlerCode
protected function entityTypeManager() {
if (!$this->entityTypeManager) {
$this->entityTypeManager = \Drupal::entityTypeManager();
}
return $this->entityTypeManager;
}