diff --git a/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php b/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php index ee7af70..7564c76 100644 --- a/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php +++ b/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php @@ -54,13 +54,16 @@ public function getDerivativeDefinitions($base_plugin_definition) { ); $label = $this->t('View %view_name, display %display_title', $label_arguments); + $executable = $view->getExecutable(); + $executable->setDisplay($name); + $display = $executable->getDisplay(); $plugin_derivatives[$machine_name] = array( 'id' => $base_plugin_id . PluginBase::DERIVATIVE_SEPARATOR . $machine_name, 'label' => $label, 'description' => $view->get('description') ? $this->t('%view_description - Represents the page display %display_title of view %view_name.', array('%view_name' => $view->label(), '%view_description' => $view->get('description'), '%display_title' => $display_info['display_title'])) : $this->t('Represents the page display %display_title of view %view_name.', array('%view_name' => $view->label(), '%display_title' => $display_info['display_title'])), 'view_id' => $view->id(), 'view_display' => $name, - 'path' => $view->getDisplay($name)->getPath(), + 'path' => $display->getPath(), 'index' => $index->id(), ) + $base_plugin_definition;