function DblogTypes::valueForm

Same name and namespace in other branches
  1. 10 core/modules/dblog/src/Plugin/views/filter/DblogTypes.php \Drupal\dblog\Plugin\views\filter\DblogTypes::valueForm()
  2. 11.x core/modules/dblog/src/Plugin/views/filter/DblogTypes.php \Drupal\dblog\Plugin\views\filter\DblogTypes::valueForm()

Overrides InOperator::valueForm

File

core/modules/dblog/src/Plugin/views/filter/DblogTypes.php, line 28

Class

DblogTypes
Exposes log types to views module.

Namespace

Drupal\dblog\Plugin\views\filter

Code

protected function valueForm(&$form, FormStateInterface $form_state) {
    parent::valueForm($form, $form_state);
    $form['value']['#access'] = !empty($form['value']['#options']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.