You are here

public function Key::getPlugins in Key 8

Returns the configured plugins for the key.

Return value

\Drupal\key\Plugin\KeyPluginInterface[] An array of plugins, indexed by plugin type.

Overrides KeyInterface::getPlugins

File

src/Entity/Key.php, line 159

Class

Key
Defines the Key entity.

Namespace

Drupal\key\Entity

Code

public function getPlugins() {
  $plugins = [];
  foreach ($this->pluginTypes as $type) {
    $plugins[$type] = $this
      ->getPlugin($type);
  }
  return $plugins;
}