You are here

public function Container::getDefinitions in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/DependencyInjection/Container.php \Drupal\service_container\DependencyInjection\Container::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.

Overrides DiscoveryInterface::getDefinitions

File

src/DependencyInjection/Container.php, line 51
Contains \Drupal\service_container\DependencyInjection\Container

Class

Container
Container is a DI container that provides services to users of the class.

Namespace

Drupal\service_container\DependencyInjection

Code

public function getDefinitions() {
  return $this->serviceDefinitions;
}