Commit 4f3af986 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

please wizard tests

parent 93351462
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
use Drupal\views\View; use Drupal\views\View;
use Drupal\views\Plugin\views\wizard\WizardInterface; use Drupal\views\Plugin\views\wizard\WizardInterface;
use Drupal\views\Plugin\Type\ViewsPluginManager;
/** /**
* A very generic Views Wizard class - can be constructed for any base table. * A very generic Views Wizard class - can be constructed for any base table.
...@@ -671,7 +672,9 @@ protected function default_display_filters_user($form, $form_state) { ...@@ -671,7 +672,9 @@ protected function default_display_filters_user($form, $form_state) {
// Check whether the bundle key filter handler is or an child of it in_operator // Check whether the bundle key filter handler is or an child of it in_operator
// If it's not just use a single value instead of an array. // If it's not just use a single value instead of an array.
$handler = $table_data[$bundle_key]['filter']['id']; $handler = $table_data[$bundle_key]['filter']['id'];
if ($handler == 'in_operator' || is_subclass_of($handler, 'Drupal\\views\\Plugin\\views\\filter\\InOperator')) { $plugin_manager = new ViewsPluginManager('filter');
$handler_definition = $plugin_manager->getDefinition($handler);
if ($handler == 'in_operator' || is_subclass_of($handler_definition['class'], 'Drupal\\views\\Plugin\\views\\filter\\InOperator')) {
$value = drupal_map_assoc(array($form_state['values']['show']['type'])); $value = drupal_map_assoc(array($form_state['values']['show']['type']));
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment