You are here

public function jQueryUiFilter::settingsForm in jQuery UI filter 8.2

Generates a filter's settings form.

Parameters

array $form: A minimally prepopulated form array.

\Drupal\Core\Form\FormStateInterface $form_state: The state of the (entire) configuration form.

Return value

array The $form array with additional form elements for the settings of this filter. The submitted form values should match $this->settings.

Overrides FilterBase::settingsForm

File

src/Plugin/Filter/jQueryUiFilter.php, line 131
Contains \Drupal\jquery_ui_filter\Plugin\Filter\jQueryUiFilter.

Class

jQueryUiFilter
Provides a filter to generate jQuery UI accordion and tabs widgets.

Namespace

Drupal\jquery_ui_filter\Plugin\Filter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $form['settings'] = [
    '#markup' => $this
      ->t('See the <a href="@href">jQuery UI filter</a> settings form to modify the accordion and tabs widget\'s global settings', [
      '@href' => Url::fromRoute('jquery_ui_filter.settings')
        ->toString(),
    ]),
  ];
  return $form;
}