function Block::getFilterOptionsValue

Same name in other branches
  1. 8.x-3.x modules/ctools_views/src/Plugin/Display/Block.php \Drupal\ctools_views\Plugin\Display\Block::getFilterOptionsValue()

Filter options value.

File

modules/ctools_views/src/Plugin/Display/Block.php, line 424

Class

Block
Provides a Block display plugin.

Namespace

Drupal\ctools_views\Plugin\Display

Code

protected function getFilterOptionsValue(array $filter, array $config) {
    $plugin_definition = $this->filterManager
        ->getDefinition($config['type']);
    if (is_subclass_of($plugin_definition['class'], '\\Drupal\\views\\Plugin\\views\\filter\\InOperator')) {
        return array_values($config['value']);
    }
    return $config['value'][$filter['expose']['identifier']];
}