Provides a 'Views Exposed Filter' block.
@Plugin(
id = "views_exposed_filter_block",
admin_label = @Translation("Views Exposed Filter Block"),
module = "views",
derivative = "Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock"
)
Expanded class hierarchy of ViewsExposedFilterBlock
class ViewsExposedFilterBlock extends ViewsBlock {
/**
* {@inheritdoc}
*/
public function build() {
$output = $this->view->display_handler
->viewExposedFormBlocks();
// Before returning the block output, convert it to a renderable array with
// contextual links.
$this
->addContextualLinks($output, 'exposed_filter');
$this->view
->destroy();
return $output;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockBase:: |
public | function | Returns the configuration form elements specific to this block plugin. | 11 |
BlockBase:: |
public | function | Adds block type-specific submission handling for the block form. | 11 |
BlockBase:: |
public | function | Adds block type-specific validation for the block form. | |
BlockBase:: |
public | function | Returns the configuration data for the block plugin. | |
BlockBase:: |
public | function | Sets a particular value in the block settings. | |
BlockBase:: |
public | function |
Returns plugin-specific settings for the block. Overrides BlockPluginInterface:: |
13 |
BlockBase:: |
public | function |
Implements \Drupal\block\BlockPluginInterface::submit(). Overrides BlockPluginInterface:: |
|
BlockBase:: |
public | function |
Implements \Drupal\block\BlockPluginInterface::validate(). Overrides BlockPluginInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
public | function |
Returns the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function |
Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
ViewsBlock:: |
protected | property | The display ID being used for this View. | |
ViewsBlock:: |
protected | property | The View executable object. | |
ViewsBlock:: |
public | function |
Overrides \Drupal\block\BlockBase::access(). Overrides BlockBase:: |
|
ViewsBlock:: |
protected | function | Converts Views block content to a renderable array with contextual links. | |
ViewsBlock:: |
public | function |
Overrides \Drupal\block\BlockBase::form(). Overrides BlockBase:: |
|
ViewsBlock:: |
public | function |
Overrides \Drupal\Component\Plugin\PluginBase::__construct(). Overrides BlockBase:: |
|
ViewsExposedFilterBlock:: |
public | function |
Builds and returns the renderable array for this block plugin. Overrides ViewsBlock:: |