function ExposedFormPluginInterface::renderExposedForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::renderExposedForm()
  2. 8.9.x core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::renderExposedForm()
  3. 10 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::renderExposedForm()

Renders the exposed form.

This method iterates over each handler configured to expose widgets to the end user and attach those widgets to the exposed form.

Parameters

bool $block: (optional) TRUE if the exposed form is being rendered as part of a block; FALSE (default) if not.

Return value

array Form build array. This method returns an empty array if the form is being rendered as a block.

See also

\Drupal\views\ViewExecutable::build()

1 method overrides ExposedFormPluginInterface::renderExposedForm()
ExposedFormPluginBase::renderExposedForm in core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
Renders the exposed form.

File

core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php, line 60

Class

ExposedFormPluginInterface
Interface for exposed filter form plugins.

Namespace

Drupal\views\Plugin\views\exposed_form

Code

public function renderExposedForm($block = FALSE);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.