public function GroupRelationManager::getGroupContentTypeIds in Group 2.0.x
Retrieves all of the group content type IDs for a content plugin.
Parameters
string $plugin_id: The ID of the plugin to retrieve group content type IDs for.
Return value
string[] An array of group content type IDs.
Overrides GroupRelationManagerInterface::getGroupContentTypeIds
File
- src/
Plugin/ Group/ Relation/ GroupRelationManager.php, line 347
Class
- GroupRelationManager
- Manages GroupRelation plugin implementations.
Namespace
Drupal\group\Plugin\Group\RelationCode
public function getGroupContentTypeIds($plugin_id) {
$map = $this
->getPluginGroupContentTypeMap();
return isset($map[$plugin_id]) ? $map[$plugin_id] : [];
}