You are here

Toggle.php in Responsive and off-canvas menu 8.3

File

src/Plugin/Block/Toggle.php
View source
<?php

namespace Drupal\responsive_menu\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
 * Provides the Toggle block.
 *
 * @Block(
 *   id = "responsive_menu_toggle",
 *   admin_label = @Translation("Responsive menu mobile icon")
 * )
 */
class Toggle extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return [
      '#theme' => 'responsive_menu_block_toggle',
    ];
  }

}

Classes

Namesort descending Description
Toggle Provides the Toggle block.