'bar', ]; return $default_configuration + parent::defaultConfiguration(); } /** * {@inheritdoc} */ public function buildConfigurationForm(array $form, FormStateInterface $form_state): array { $form = parent::buildConfigurationForm($form, $form_state); $form['foo'] = [ '#type' => 'textfield', '#title' => $this->t('Foo'), '#default_value' => $this->configuration['foo'], ]; return $form; } {% endif %} /** * {@inheritdoc} */ protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS'): QueryInterface { $query = parent::buildEntityQuery($match, $match_operator); // @todo Modify the query here. return $query; } }