public MenuLinkManager::hasDefinition($plugin_id)
Indicates if a specific plugin definition exists.
Parameters
string $plugin_id: A plugin ID.
Return value
bool TRUE if the definition exists, FALSE otherwise.
Overrides DiscoveryInterface::hasDefinition
File
- core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 216
Class
- MenuLinkManager
- Manages discovery, instantiation, and tree building of menu link plugins.
Namespace
Drupal\Core\Menu
Code
public function hasDefinition($plugin_id) { return (bool) $this->getDefinition($plugin_id, FALSE); }
Please login to continue.