public function GroupTypeInterface::getContentPlugin in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/GroupTypeInterface.php \Drupal\group\Entity\GroupTypeInterface::getContentPlugin()
Gets an installed content enabler plugin for this group type.
Warning: In places where the plugin may not be installed on the group type, you should always run ::hasContentPlugin() first or you may risk ending up with crashes or unreliable data.
Parameters
string $plugin_id: The ID of the content enabler plugin.
Return value
\Drupal\group\Plugin\GroupContentEnablerInterface The installed content enabler plugin for the group type.
1 method overrides GroupTypeInterface::getContentPlugin()
- GroupType::getContentPlugin in src/
Entity/ GroupType.php - Gets an installed content enabler plugin for this group type.
File
- src/
Entity/ GroupTypeInterface.php, line 159
Class
- GroupTypeInterface
- Provides an interface defining a group type entity.
Namespace
Drupal\group\EntityCode
public function getContentPlugin($plugin_id);