You are here

public function GroupContent::getContentPlugin in Group 8

Returns the content enabler plugin that handles the group content.

Return value

\Drupal\group\Plugin\GroupContentEnablerInterface

Overrides GroupContentInterface::getContentPlugin

File

src/Entity/GroupContent.php, line 106

Class

GroupContent
Defines the Group content entity.

Namespace

Drupal\group\Entity

Code

public function getContentPlugin() {
  return $this
    ->getGroupContentType()
    ->getContentPlugin();
}