protected function GroupContentForm::getRelationPlugin in Group 2.0.x
Returns the plugin responsible for this piece of group content.
Return value
\Drupal\group\Plugin\Group\Relation\GroupRelationInterface The responsible group relation plugin.
File
- src/
Entity/ Form/ GroupContentForm.php, line 39
Class
- GroupContentForm
- Form controller for the group content edit forms.
Namespace
Drupal\group\Entity\FormCode
protected function getRelationPlugin() {
/** @var \Drupal\group\Entity\GroupContent $group_content */
$group_content = $this
->getEntity();
return $group_content
->getRelationPlugin();
}