You are here

public function GroupContentEnablerManager::getInstalled in Group 8

Returns a plugin collection of all installed content enablers.

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\GroupContentEnablerCollection 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 GroupContentEnablerManagerInterface::getInstalled

File

src/Plugin/GroupContentEnablerManager.php, line 224

Class

GroupContentEnablerManager
Manages GroupContentEnabler plugin implementations.

Namespace

Drupal\group\Plugin

Code

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