protected function GroupContentForm::getContentPlugin in Group 8
Returns the plugin responsible for this piece of group content.
Return value
\Drupal\group\Plugin\GroupContentEnablerInterface The responsible group content enabler 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 getContentPlugin() {
/** @var \Drupal\group\Entity\GroupContent $group_content */
$group_content = $this
->getEntity();
return $group_content
->getContentPlugin();
}