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