function DblogTypes::getValueOptions

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

Overrides InOperator::getValueOptions

File

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

Class

DblogTypes
Exposes log types to views module.

Namespace

Drupal\dblog\Plugin\views\filter

Code

public function getValueOptions() {
    if (!isset($this->valueOptions)) {
        $this->valueOptions = _dblog_get_message_types();
    }
    return $this->valueOptions;
}

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