You are here

public function DiscoveryTrait::hasDefinition in Plug 7

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);
}