You are here

public function DiscoveryInterface::hasDefinition in Plug 7

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

lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php, line 53
Contains \Drupal\Component\Plugin\Discovery\DiscoveryInterface.

Class

DiscoveryInterface
An interface defining the minimum requirements of building a plugin discovery component.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function hasDefinition($plugin_id);