You are here

public function DiscoveryTrait::hasDefinition in Zircon Profile 8.0

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

File

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