You are here

public function ViewDuplicatorTest::buildConfigurationForm in Views Templates 8

Return form elements of extra configuration when adding View from template.

Parameters

array $form: The form in array.

\Drupal\Core\Form\FormStateInterface $form_state: The values from the form.

Return value

mixed Returns empty array.

Overrides ViewsDuplicateBuilderBase::buildConfigurationForm

File

tests/modules/views_templates_builder_test/src/Plugin/ViewsTemplateBuilder/ViewDuplicatorTest.php, line 35

Class

ViewDuplicatorTest
The ViewsBuilder.

Namespace

Drupal\views_templates_builder_test\Plugin\ViewsTemplateBuilder

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $config_form['pager_count'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Pager Count'),
    '#default_value' => '10',
  ];
  return $config_form;
}