Skip to content

Commit

Permalink
ACMS-4246: Move MainListingPagesView to search from common.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Dec 31, 2024
1 parent a63f407 commit 89d00a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
17 changes: 0 additions & 17 deletions modules/acquia_cms_common/acquia_cms_common.module
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,6 @@ function acquia_cms_common_form_alter(&$form, FormStateInterface $form_state, $f
}
}

/**
* Implements hook_views_data().
*/
function acquia_cms_common_views_data() {
return [
'views' => [
'main_listing_pages_view' => [
'title' => t('Main listing pages - Text area'),
'help' => t('Insert a text area inside a main view listing pages if the search server is available. If the view is not based on a Search API index, this behaves like a standard text area.'),
'area' => [
'id' => 'main_listing_pages_view',
],
],
],
];
}

/**
* Implements hook_theme().
*/
Expand Down
7 changes: 7 additions & 0 deletions modules/acquia_cms_search/acquia_cms_search.module
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ function acquia_cms_search_views_data() {
'id' => 'view_fallback',
],
],
'main_listing_pages_view' => [
'title' => t('Main listing pages - Text area'),
'help' => t('Insert a text area inside a main view listing pages if the search server is available. If the view is not based on a Search API index, this behaves like a standard text area.'),
'area' => [
'id' => 'main_listing_pages_view',
],
],
],
];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Drupal\acquia_cms_common\Plugin\views\area;
namespace Drupal\acquia_cms_search\Plugin\views\area;

use Drupal\search_api\Plugin\views\query\SearchApiQuery;
use Drupal\search_api\SearchApiException;
Expand Down

0 comments on commit 89d00a8

Please sign in to comment.