You are here

public function DiscoveryInterface::hasDefinition in Drupal 9

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

1 method overrides DiscoveryInterface::hasDefinition()
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 50

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