You are here

MiconLoginLogoutMenuLink.php in Micon 2.x

Same filename and directory in other branches
  1. 8 micon_menu/src/MiconLoginLogoutMenuLink.php

Namespace

Drupal\micon_menu

File

micon_menu/src/MiconLoginLogoutMenuLink.php
View source
<?php

namespace Drupal\micon_menu;

use Drupal\user\Plugin\Menu\LoginLogoutMenuLink;

/**
 * A menu link that shows "Log in" or "Log out" as appropriate.
 */
class MiconLoginLogoutMenuLink extends LoginLogoutMenuLink {

  /**
   * {@inheritdoc}
   */
  protected $overrideAllowed = [
    'menu_name' => 1,
    'parent' => 1,
    'weight' => 1,
    'expanded' => 1,
    'enabled' => 1,
    // Allow override of this variable.
    'options' => 1,
  ];

}

Classes

Namesort descending Description
MiconLoginLogoutMenuLink A menu link that shows "Log in" or "Log out" as appropriate.