SearchPage::postSave

public SearchPage::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool

SearchPage::postDelete

public static SearchPage::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/search/src/Entity/SearchPage.php, line 195 Class SearchPage Defi

SearchPage::postCreate

public SearchPage::postCreate(EntityStorageInterface $storage) Acts on a created entity before hooks are invoked. Used after the entity is created, but before saving the entity and before any of the presave hooks are invoked. See the Entity CRUD topic for more information. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. Overrides Entity::postCreate See also \Drupal\Core\Entity\EntityInterface::create() File core/modules/search/src/Entity/SearchPage.p

SearchPage::isIndexable

public SearchPage::isIndexable() Determines if this search page entity is indexable. Return value bool TRUE if this search page entity is indexable, FALSE otherwise. Overrides SearchPageInterface::isIndexable File core/modules/search/src/Entity/SearchPage.php, line 146 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code public function isIndexable() { return $this->status() && $this->getPlugin() instanceof SearchIndexingInterface; }

SearchPage::isDefaultSearch

public SearchPage::isDefaultSearch() Determines if this search page entity is currently the default search. Return value bool TRUE if this search page entity is the default search, FALSE otherwise. Overrides SearchPageInterface::isDefaultSearch File core/modules/search/src/Entity/SearchPage.php, line 153 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code public function isDefaultSearch() { return $this->searchPageRepository()->getDefaultSear

SearchPage::getWeight

public SearchPage::getWeight() Returns the weight for the page. Return value int The page weight. Overrides SearchPageInterface::getWeight File core/modules/search/src/Entity/SearchPage.php, line 167 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code public function getWeight() { return $this->weight; }

SearchPage::getPath

public SearchPage::getPath() Returns the path for the search. Return value string The part of the path for this search page that comes after 'search'. Overrides SearchPageInterface::getPath File core/modules/search/src/Entity/SearchPage.php, line 160 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code public function getPath() { return $this->path; }

SearchPage::configFactory

protected SearchPage::configFactory() Wraps the config factory. Return value \Drupal\Core\Config\ConfigFactoryInterface A config factory object. File core/modules/search/src/Entity/SearchPage.php, line 234 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code protected function configFactory() { return \Drupal::service('config.factory'); }

SearchPage::$weight

The weight of the search page. Type: int File core/modules/search/src/Entity/SearchPage.php, line 99 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code protected $weight;

SearchPage::$path

The path this search page will appear upon. This value is appended to 'search/' when building the path. Type: string File core/modules/search/src/Entity/SearchPage.php, line 92 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code protected $path;