You are here

protected function GroupContentDeleteForm::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/GroupContentDeleteForm.php, line 20

Class

GroupContentDeleteForm
Provides a form for deleting a group content entity.

Namespace

Drupal\group\Entity\Form

Code

protected function getContentPlugin() {

  /** @var \Drupal\group\Entity\GroupContent $group_content */
  $group_content = $this
    ->getEntity();
  return $group_content
    ->getContentPlugin();
}