You are here

protected function MiconMenuLinkManager::processDefinition in Micon 2.x

Same name and namespace in other branches
  1. 8 micon_menu/src/MiconMenuLinkManager.php \Drupal\micon_menu\MiconMenuLinkManager::processDefinition()

Performs extra processing on plugin definitions.

By default we add defaults for the type to the definition. If a type has additional processing logic, the logic can be added by replacing or extending this method.

Parameters

array $definition: The definition to be processed and modified by reference.

$plugin_id: The ID of the plugin this definition is being used for.

Overrides MenuLinkManager::processDefinition

File

micon_menu/src/MiconMenuLinkManager.php, line 24

Class

MiconMenuLinkManager
Modifies the language manager service.

Namespace

Drupal\micon_menu

Code

protected function processDefinition(array &$definition, $plugin_id) {

  // Use the micon link class override.
  $this->defaults['class'] = 'Drupal\\micon_menu\\MiconMenuLinkDefault';
  parent::processDefinition($definition, $plugin_id);
}