Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DiscoveryInterface.php

function 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);
RSS feed
Powered by Drupal