MenuLinkManager::hasDefinition

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

1
2
3
public function hasDefinition($plugin_id) {
  return (bool) $this->getDefinition($plugin_id, FALSE);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.