function DiscoveryTrait::hasDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::hasDefinition()
  2. 8.9.x core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::hasDefinition()
  3. 10 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php \Drupal\Component\Plugin\Discovery\DiscoveryTrait::hasDefinition()
2 calls to DiscoveryTrait::hasDefinition()
ConfigActionManager::applyAction in core/lib/Drupal/Core/Config/Action/ConfigActionManager.php
Applies a config action.
MigrationPluginManager::expandPluginIds in core/modules/migrate/src/Plugin/MigrationPluginManager.php

File

core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php, line 59

Class

DiscoveryTrait

Namespace

Drupal\Component\Plugin\Discovery

Code

public function hasDefinition($plugin_id) {
    return (bool) $this->getDefinition($plugin_id, FALSE);
}

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