You are here

public function AnnotatedClassDiscovery::hasDefinition in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\service_container_annotation_discovery\Plugin\Discovery\AnnotatedClassDiscovery::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.

Overrides DiscoveryInterface::hasDefinition

File

modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php, line 183
Contains \Drupal\service_container_annotation_discovery\Plugin\Discovery\AnnotatedClassDiscovery

Class

AnnotatedClassDiscovery
TODO

Namespace

Drupal\service_container_annotation_discovery\Plugin\Discovery

Code

public function hasDefinition($plugin_id) {
  return (bool) $this
    ->getDefinition($plugin_id, FALSE);
}