public function GroupContentType::getContentPlugin in Group 8
Gets the content enabler plugin the content type uses.
Return value
\Drupal\group\Plugin\GroupContentEnablerInterface The content enabler plugin the content type uses.
Overrides GroupContentTypeInterface::getContentPlugin
File
- src/
Entity/ GroupContentType.php, line 150
Class
- GroupContentType
- Defines the Group content type configuration entity.
Namespace
Drupal\group\EntityCode
public function getContentPlugin() {
if (!isset($this->pluginInstance)) {
$configuration = $this->plugin_config;
$configuration['group_type_id'] = $this
->getGroupTypeId();
$this->pluginInstance = $this
->getContentEnablerManager()
->createInstance($this
->getContentPluginId(), $configuration);
}
return $this->pluginInstance;
}