I want to add an additional form element in the configuration form for core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php
by adding
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['my_new_form_element'] = [...];
return $form;
}
If I hack core and add that code in the file, it does what I want. But of course I don't want to hack core. So I'm trying to figure out how to make it so that my custom module's block class is used instead of ViewsExposedFilterBlock.php
.
So how do I alert Views to use my class, ExposedFilterImagesBlock.php
?
Information that I've found that might help you help me:
ViewsExposedFilterBlock.php
has deriver = "Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock"
in its annotation. So I'm assuming the deriver plays an important role...just one that is unclear to me.
Thanks in advance for any help you can provide!