function SearchPage::isIndexable

Same name in other branches
  1. 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::isIndexable()
  2. 8.9.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::isIndexable()
  3. 11.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::isIndexable()

Overrides SearchPageInterface::isIndexable

File

core/modules/search/src/Entity/SearchPage.php, line 152

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

public function isIndexable() {
    return $this->status() && $this->getPlugin() instanceof SearchIndexingInterface;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.