Renamed the module's machine name from islandora_advanced_search to `advanced_search

This commit is contained in:
Kyle Huynh 2021-12-09 10:06:25 -05:00
parent c210ee062c
commit a3cca6bc37
36 changed files with 130 additions and 130 deletions

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormBuilderInterface;
@ -15,8 +15,8 @@ use Symfony\Component\HttpFoundation\Request;
* Provides an Islandora Advanced Search block.
*
* @Block(
* id = "islandora_advanced_search_block",
* deriver = "Drupal\islandora_advanced_search\Plugin\Block\AdvancedSearchBlockDeriver",
* id = "advanced_search_block",
* deriver = "Drupal\advanced_search\Plugin\Block\AdvancedSearchBlockDeriver",
* admin_label = @Translation("Islandora Advanced Search"),
* category = @Translation("Islandora"),
* )
@ -343,7 +343,7 @@ class AdvancedSearchBlock extends BlockBase implements ContainerFactoryPluginInt
];
}
$form['#attributes']['class'][] = 'clearfix';
$form['#attached']['library'][] = 'islandora_advanced_search/advanced.search.admin';
$form['#attached']['library'][] = 'advanced_search/advanced.search.admin';
return $form;
}
@ -371,7 +371,7 @@ class AdvancedSearchBlock extends BlockBase implements ContainerFactoryPluginInt
foreach ($this->configuration[self::SETTING_FIELDS] as $identifier) {
$configured_fields[$identifier] = $fields[$identifier];
}
return $this->formBuilder->getForm('Drupal\islandora_advanced_search\Form\AdvancedSearchForm', $this->view, $this->display, $configured_fields, $this->configuration[self::SETTING_CONTEXTUAL_FILTER]);
return $this->formBuilder->getForm('Drupal\advanced_search\Form\AdvancedSearchForm', $this->view, $this->display, $configured_fields, $this->configuration[self::SETTING_CONTEXTUAL_FILTER]);
}
/**

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
/**
* Deriver for AdvancedSearchBlock.

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormStateInterface;
@ -84,7 +84,7 @@ class SearchBlock extends BlockBase {
* {@inheritdoc}
*/
public function build() {
return \Drupal::formBuilder()->getForm('Drupal\islandora_advanced_search\Form\SearchForm');
return \Drupal::formBuilder()->getForm('Drupal\advanced_search\Form\SearchForm');
}
}

View file

@ -1,12 +1,12 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Render\Markup;
use Drupal\Core\Url;
use Drupal\islandora_advanced_search\AdvancedSearchQuery;
use Drupal\advanced_search\AdvancedSearchQuery;
use Drupal\views\Entity\View;
use Drupal\views\Plugin\views\pager\SqlBase;
use Drupal\views\ViewExecutable;
@ -17,8 +17,8 @@ use Symfony\Component\HttpFoundation\Request;
* Provides a 'AjaxViewBlock' block.
*
* @Block(
* id = "islandora_advanced_search_result_pager",
* deriver = "Drupal\islandora_advanced_search\Plugin\Block\SearchResultsPagerBlockDeriver",
* id = "advanced_search_result_pager",
* deriver = "Drupal\advanced_search\Plugin\Block\SearchResultsPagerBlockDeriver",
* admin_label = @Translation("Search Results Pager"),
* category = @Translation("Islandora"),
* )
@ -81,7 +81,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
$build = [
'#attached' => [
'drupalSettings' => [
'islandora_advanced_search_pager_views_ajax' => [
'advanced_search_pager_views_ajax' => [
$id => [
'view_id' => $view_id,
'current_display_id' => $display_id,
@ -91,7 +91,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
],
],
'#attributes' => [
'class' => ['islandora_advanced_search_result_pager'],
'class' => ['advanced_search_result_pager'],
'data-drupal-pager-id' => $id,
],
'result_summary' => $this->buildResultsSummary($view_executable),

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
/**
* This deriver creates a block for every search_api.display.

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Block;
namespace Drupal\advanced_search\Plugin\Block;
/**
* Gets the view and display identifiers used to create this block.

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\Field\FieldFormatter;
namespace Drupal\advanced_search\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets\widget;
namespace Drupal\advanced_search\Plugin\facets\widget;
use Drupal\facets\Plugin\facets\widget\LinksWidget;
use Drupal\Core\Link;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\facets_summary\FacetsSummaryInterface;
use Drupal\facets_summary\Processor\BuildProcessorInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\facets_summary\FacetsSummaryInterface;
use Drupal\facets_summary\Processor\BuildProcessorInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\Core\Link;
use Drupal\facets_summary\FacetsSummaryInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\Core\Link;
use Drupal\Core\Url;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\facets_summary\FacetsSummaryInterface;
use Drupal\facets_summary\Processor\BuildProcessorInterface;

View file

@ -1,6 +1,6 @@
<?php
namespace Drupal\islandora_advanced_search\Plugin\facets_summary\processor;
namespace Drupal\advanced_search\Plugin\facets_summary\processor;
use Drupal\Core\Link;
use Drupal\Core\Url;