MmenuSearchBlock.php in Mobile sliding menu 8
Namespace
Drupal\mmenu\Plugin\BlockFile
src/Plugin/Block/MmenuSearchBlock.phpView source
<?php
namespace Drupal\mmenu\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Provides a Search block.
*
* @Block(
* id = "mmenu:search",
* admin_label = @Translation("Search")
* )
*/
class MmenuSearchBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return \Drupal::formBuilder()
->getForm('Drupal\\search\\Form\\SearchBlockForm');
}
}
Classes
Name | Description |
---|---|
MmenuSearchBlock | Provides a Search block. |