function DiscoveryInterface::hasDefinition

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php \Drupal\Component\Plugin\Discovery\DiscoveryInterface::hasDefinition()
  2. 10 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php \Drupal\Component\Plugin\Discovery\DiscoveryInterface::hasDefinition()
  3. 11.x core/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.

File

core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php, line 49

Class

DiscoveryInterface
Defines the minimum requirements for a plugin discovery component.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function hasDefinition($plugin_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.