You are here

public function DiscoveryInterface::hasDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

2 methods override DiscoveryInterface::hasDefinition()
EntityManager::hasDefinition in core/lib/Drupal/Core/Entity/EntityManager.php
MenuLinkManager::hasDefinition in core/lib/Drupal/Core/Menu/MenuLinkManager.php
Indicates if a specific plugin definition exists.

File

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