'bar', ]; return $default_configuration + parent::defaultConfiguration(); } /** * {@inheritdoc} */ public function buildConfigurationForm(array $form, FormStateInterface $form_state) { $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') { $query = parent::buildEntityQuery($match, $match_operator); // @DCG // Here you can apply addition conditions, sorting, etc to the query. // Also see self::entityQueryAlter(). $query->condition('field_example', 123); return $query; } }