You are here

public function ExposedFormPluginInterface::renderExposedForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface::renderExposedForm()
  2. 9 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);