public function DiscoveryInterface::hasDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php \Drupal\Component\Plugin\Discovery\DiscoveryInterface::hasDefinition()
- 10 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 50
Class
- DiscoveryInterface
- An interface defining the minimum requirements of building a plugin discovery component.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function hasDefinition($plugin_id);