protected function GroupContentEnablerBase::getEntityType in Group 8
Returns the entity type definition the plugin supports.
Return value
\Drupal\Core\Entity\EntityTypeInterface The entity type definition.
File
- src/
Plugin/ GroupContentEnablerBase.php, line 90
Class
- GroupContentEnablerBase
- Provides a base class for GroupContentEnabler plugins.
Namespace
Drupal\group\PluginCode
protected function getEntityType() {
return \Drupal::entityTypeManager()
->getDefinition($this
->getEntityTypeId());
}