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

public function hasDefinition($plugin_id) {
  return (bool) $this->getDefinition($plugin_id, FALSE);
}
doc_Drupal
2016-10-29 09:27:06
Comments
Leave a Comment

Please login to continue.