MiconMenuLinkManager.php in Micon 8
Same filename and directory in other branches
Namespace
Drupal\micon_menuFile
micon_menu/src/MiconMenuLinkManager.phpView source
<?php
namespace Drupal\micon_menu;
use Drupal\Core\Menu\MenuLinkManager;
/**
* Modifies the language manager service.
*/
class MiconMenuLinkManager extends MenuLinkManager {
/**
* 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.
*
* @param array $definition
* The definition to be processed and modified by reference.
* @param $plugin_id
* The ID of the plugin this definition is being used for.
*/
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);
}
}
Classes
Name | Description |
---|---|
MiconMenuLinkManager | Modifies the language manager service. |