SearchPageRepository::setDefaultSearchPage

public SearchPageRepository::setDefaultSearchPage(SearchPageInterface $search_page) Sets a given search page as the default. Parameters \Drupal\search\SearchPageInterface $search_page: The search page entity. Return value static Overrides SearchPageRepositoryInterface::setDefaultSearchPage File core/modules/search/src/SearchPageRepository.php, line 98 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function setDefa

SearchPageRepository::isSearchActive

public SearchPageRepository::isSearchActive() Returns whether search is active. Return value bool TRUE if at least one search is active, FALSE otherwise. Overrides SearchPageRepositoryInterface::isSearchActive File core/modules/search/src/SearchPageRepository.php, line 53 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function isSearchActive() { return (bool) $this->getQuery() ->condition('status', TRUE

SearchPageRepository::clearDefaultSearchPage

public SearchPageRepository::clearDefaultSearchPage() Clears the default search page. Overrides SearchPageRepositoryInterface::clearDefaultSearchPage File core/modules/search/src/SearchPageRepository.php, line 91 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function clearDefaultSearchPage() { $this->configFactory->getEditable('search.settings')->clear('default_page')->save(); }

SearchPageRepository::$storage

The search page storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/search/src/SearchPageRepository.php, line 25 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code protected $storage;

SearchPageRepository

Provides a repository for Search Page config entities. Hierarchy class \Drupal\search\SearchPageRepository implements SearchPageRepositoryInterface File core/modules/search/src/SearchPageRepository.php, line 11 Namespace Drupal\search Members Name Modifiers Type Description SearchPageRepository::$configFactory protected property The config factory. SearchPageRepository::$storage protected property The search page storage. SearchPageRepository::clearDefaultSearc

SearchPageRepository::getActiveSearchPages

public SearchPageRepository::getActiveSearchPages() Returns all active search page entities. Return value \Drupal\search\SearchPageInterface[] An array of active search page entities. Overrides SearchPageRepositoryInterface::getActiveSearchPages File core/modules/search/src/SearchPageRepository.php, line 43 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function getActiveSearchPages() { $ids = $this->getQuery(

SearchPageRepository::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/modules/search/src/SearchPageRepository.php, line 18 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code protected $configFactory;

SearchPageListBuilder::__construct

public SearchPageListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, SearchPluginManager $search_manager, ConfigFactoryInterface $config_factory) Constructs a new SearchPageListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. \Drupal\search\SearchPluginManager $search_manager: The search plugin manager. \Drupal\Core\C

SearchPageListBuilder::validateAddSearchPage

public SearchPageListBuilder::validateAddSearchPage(array &$form, FormStateInterface $form_state) Form validation handler for adding a new search page. File core/modules/search/src/SearchPageListBuilder.php, line 360 Class SearchPageListBuilder Defines a class to build a listing of search page entities. Namespace Drupal\search Code public function validateAddSearchPage(array &$form, FormStateInterface $form_state) { if ($form_state->isValueEmpty('search_type')) { $form

SearchPageListBuilder::validateForm

public SearchPageListBuilder::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides DraggableListBuilder::validateForm File core/modules/search/src/SearchPageListBuilder.php, line 320 Class SearchPageListBuilder Defines a class to build a listing of search page entities. Namespace