You are here

public function GroupRelationManager::getInstalled in Group 2.0.x

Returns a plugin collection of all installed group relations.

Warning: When called without a $group_type argument, this will return a collection of vanilla plugin instances. See ::getAll() for details about vanilla instances.

Parameters

\Drupal\group\Entity\GroupTypeInterface $group_type: (optional) The group type to retrieve installed plugin for.

Return value

\Drupal\group\Plugin\Group\Relation\GroupRelationCollection A plugin collection with a vanilla instance of every installed plugin. If $group_type was provided, the collection will contain fully instantiated plugins for the provided group type.

Overrides GroupRelationManagerInterface::getInstalled

File

src/Plugin/Group/Relation/GroupRelationManager.php, line 219

Class

GroupRelationManager
Manages GroupRelation plugin implementations.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function getInstalled(GroupTypeInterface $group_type = NULL) {
  return !isset($group_type) ? $this
    ->getVanillaInstalled() : $this
    ->getGroupTypeInstalled($group_type);
}