public function GroupTypeInterface::getContentPlugin in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/GroupTypeInterface.php \Drupal\group\Entity\GroupTypeInterface::getContentPlugin()
Gets an installed group relation 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 group relation plugin.
Return value
\Drupal\group\Plugin\Group\Relation\GroupRelationInterface The installed group relation plugin for the group type.
1 method overrides GroupTypeInterface::getContentPlugin()
- GroupType::getContentPlugin in src/
Entity/ GroupType.php - Gets an installed group relation 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);