You are here

public function DiscoveryInterface::hasDefinition in Service Container 7.2

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

Indicates if a specific plugin definition exists.

Parameters

string $plugin_id: A plugin ID.

Return value

bool TRUE if the definition exists, FALSE otherwise.

5 methods override DiscoveryInterface::hasDefinition()
AnnotatedClassDiscovery::hasDefinition in modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php
Indicates if a specific plugin definition exists.
Container::hasDefinition in src/DependencyInjection/Container.php
Indicates if a specific plugin definition exists.
ContainerAwarePluginManager::hasDefinition in src/Plugin/ContainerAwarePluginManager.php
Indicates if a specific plugin definition exists.
CToolsPluginDiscovery::hasDefinition in src/Plugin/Discovery/CToolsPluginDiscovery.php
Indicates if a specific plugin definition exists.
PluginManagerBase::hasDefinition in src/Plugin/PluginManagerBase.php
Indicates if a specific plugin definition exists.

File

lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php, line 53
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 hasDefinition($plugin_id);