public function ActionManager::getDefinitionsByType

Gets the plugin definitions for this entity type.

Parameters

string $type: The entity type name.

Return value

array An array of plugin definitions for this entity type.

File

drupal/core/lib/Drupal/Core/Action/ActionManager.php, line 46
Contains \Drupal\Core\Action\ActionManager.

Class

ActionManager
Provides an Action plugin manager.

Namespace

Drupal\Core\Action

Code

public function getDefinitionsByType($type) {
  return array_filter($this
    ->getDefinitions(), function ($definition) use ($type) {
    return $definition['type'] === $type;
  });
}