public function GroupContentEnablerBase::getGroupType in Group 8
Returns the group type the plugin was instantiated for.
Return value
\Drupal\group\Entity\GroupTypeInterface|null The group type, if set in the plugin configuration.
Overrides GroupContentEnablerInterface::getGroupType
File
- src/
Plugin/ GroupContentEnablerBase.php, line 125
Class
- GroupContentEnablerBase
- Provides a base class for GroupContentEnabler plugins.
Namespace
Drupal\group\PluginCode
public function getGroupType() {
if ($id = $this
->getGroupTypeId()) {
return GroupType::load($id);
}
}