You are here

public function DiscoveryTrait::hasDefinition in Service Container 7

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

File

lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php, line 63
Contains \Drupal\Component\Plugin\Discovery\DiscoveryTrait.

Class

DiscoveryTrait

Namespace

Drupal\Component\Plugin\Discovery

Code

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