You are here

public function DiscoveryInterface::getDefinitions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php \Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

2 methods override DiscoveryInterface::getDefinitions()
EntityTypeManagerInterface::getDefinitions in core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php
MenuLinkManager::getDefinitions in core/lib/Drupal/Core/Menu/MenuLinkManager.php
Gets the definition of all plugins for this type.

File

core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php, line 42
Contains \Drupal\Component\Plugin\Discovery\DiscoveryInterface.

Class

DiscoveryInterface
An interface defining the minimum requirements of building a plugin discovery component.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function getDefinitions();