drop-down-login.html.twig in Drop Down Login 8
Template for login dropd down.
Available variables
- $login_form (array): renderable login form array
- $login_url: url for login button/link
- $login_link_text: logout button/link text.
1 theme call to drop-down-login.html.twig
- DropDownLoginBlock::build in src/
Plugin/ Block/ DropdownLoginBlock.php - Builds and returns the renderable array for this block plugin.
File
templates/drop-down-login.html.twigView source
- {#
- /**
- * @file
- * Template for login dropd down.
- *
- * Available variables
- * - $login_form (array): renderable login form array
- * - $login_url: url for login button/link
- * - $login_link_text: logout button/link text.
- */
- #}
-
- <div class="drop-down-login-container" id="drop-down-login-wrapper">
- <a href= {{ login_url }} class="login button">
- <span><span> {{ login_link_text }} </span></span>
- </a>
- <div class="dropdown" style="display: none;">
- {% if login_form %}
- {{ login_form }}
- {% endif %}
- </div>
- </div>