public function SearchBlock::build

Builds and returns the renderable array for this block plugin.

Return value

array A renderable array representing the content of the block.

Overrides BlockPluginInterface::build

See also

\Drupal\block\BlockRenderController

File

drupal/core/modules/search/lib/Drupal/search/Plugin/Block/SearchBlock.php, line 35
Contains \Drupal\search\Plugin\Block\SearchBlock.

Class

SearchBlock
Provides a 'Search form' block.

Namespace

Drupal\search\Plugin\Block

Code

public function build() {
  return array(
    drupal_get_form('search_block_form'),
  );
}