3 namespace Drupal\search;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining a search page entity.
10 interface SearchPageInterface extends ConfigEntityInterface {
13 * Returns the search plugin.
15 * @return \Drupal\search\Plugin\SearchInterface
16 * The search plugin used by this search page entity.
18 public function getPlugin();
21 * Sets the search plugin.
23 * @param string $plugin_id
24 * The search plugin ID.
26 public function setPlugin($plugin_id);
29 * Determines if this search page entity is currently the default search.
32 * TRUE if this search page entity is the default search, FALSE otherwise.
34 public function isDefaultSearch();
37 * Determines if this search page entity is indexable.
40 * TRUE if this search page entity is indexable, FALSE otherwise.
42 public function isIndexable();
45 * Returns the path for the search.
48 * The part of the path for this search page that comes after 'search'.
50 public function getPath();
53 * Returns the weight for the page.
58 public function getWeight();