Skip to content
Snippets Groups Projects

Issue #2888872: Make type filter for dblog view integration more robust

Open Brent Gees requested to merge issue/drupal-2888872:9.3.x into 9.4.x
Files
2
@@ -2,6 +2,7 @@
namespace Drupal\dblog\Plugin\views\filter;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\filter\InOperator;
/**
@@ -21,4 +22,12 @@ public function getValueOptions() {
return $this->valueOptions;
}
/**
* {@inheritDoc}
*/
protected function valueForm(&$form, FormStateInterface $form_state) {
parent::valueForm($form, $form_state);
$form['value']['#access'] = !empty($form['value']['#options']);
}
}
Loading