diff --git a/src/Annotation/SearchApiDisplay.php b/src/Annotation/SearchApiDisplay.php index 35cb95a..4515c9e 100644 --- a/src/Annotation/SearchApiDisplay.php +++ b/src/Annotation/SearchApiDisplay.php @@ -1,10 +1,5 @@ displays)) { + if ($this->displays === NULL) { $this->displays = array(); foreach ($this->getDefinitions() as $name => $display_definition) { diff --git a/src/Plugin/search_api/display/ViewsPageDisplay.php b/src/Plugin/search_api/display/ViewsPageDisplay.php index bfa8d54..b1af1fe 100644 --- a/src/Plugin/search_api/display/ViewsPageDisplay.php +++ b/src/Plugin/search_api/display/ViewsPageDisplay.php @@ -7,7 +7,7 @@ use Drupal\search_api\Display\DisplayPluginBase; use Drupal\views\Views; /** - * Represents a display which represents the Search API views. + * Represents a views page display. * * @SearchApiDisplay( * id = "views_page", diff --git a/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php b/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php index 933867a..97200f0 100644 --- a/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php +++ b/src/Plugin/search_api/display/ViewsPageDisplayDeriver.php @@ -8,7 +8,7 @@ use Drupal\search_api\Display\DisplayDeriverBase; use Drupal\search_api\Plugin\views\query\SearchApiQuery; /** - * Derives a display plugin definition for every Search API view. + * Derives a display plugin definition for every Search API views page. * * @see \Drupal\search_api\Plugin\search_api\display\ViewsPageDisplay */ @@ -52,7 +52,7 @@ class ViewsPageDisplayDeriver extends DisplayDeriverBase { '%view_name' => $view->label(), '%display_title' => $display_info['display_title'] ); - $label = $this->t('View %view_label, display %display_title', $label_arguments); + $label = $this->t('View %view_name, display %display_title', $label_arguments); $plugin_derivatives[$machine_name] = array( 'id' => $base_plugin_id . PluginBase::DERIVATIVE_SEPARATOR . $machine_name,