You are here

MiconMenuLinkManager.php in Micon 8

Same filename and directory in other branches
  1. 2.x micon_menu/src/MiconMenuLinkManager.php

Namespace

Drupal\micon_menu

File

micon_menu/src/MiconMenuLinkManager.php
View 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

Namesort descending Description
MiconMenuLinkManager Modifies the language manager service.