You are here

protected function GroupRelationBase::getEntityType in Group 2.0.x

Returns the entity type definition the plugin supports.

Return value

\Drupal\Core\Entity\EntityTypeInterface The entity type definition.

File

src/Plugin/Group/Relation/GroupRelationBase.php, line 87

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

protected function getEntityType() {
  return \Drupal::entityTypeManager()
    ->getDefinition($this
    ->getEntityTypeId());
}