SearchPageEditForm

Provides a form for editing a search page. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\search\Form\SearchPageFormBaseclass \Drupal\search\Form\SearchPageEditForm File core/modules/search/src/Form/SearchPageEditForm.ph

SearchPageAddForm::save

public SearchPageAddForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the ope

SearchPageAddForm::buildForm

public SearchPageAddForm::buildForm(array $form, FormStateInterface $form_state, $search_plugin_id = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides SearchPageFormBase::buildForm File core/modules/search/src/Form/SearchPageAddForm.php, line 15 Class SearchPageAddForm Provides a form for adding a search

SearchPageAddForm::actions

protected SearchPageAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/search/src/Form/SearchPageAddForm.php, line 25 Class SearchPageAddForm Provides a form for adding a search page. Namespace Drupal\search\Form Code protected function actions(array $form, FormStateInterf

SearchPageAddForm

Provides a form for adding a search page. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\search\Form\SearchPageFormBaseclass \Drupal\search\Form\SearchPageAddForm File core/modules/search/src/Form/SearchPageAddForm.php,

SearchPageAccessControlHandler::checkAccess

protected SearchPageAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user

SearchPageAccessControlHandler

Defines the access control handler for the search page entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\search\SearchPageAccessControlHandler See also \Drupal\search\Entity\SearchPage File core/modules/search/src/SearchPageAccessControlHandler.php, line 16 Namespace Drupal\search Members Name Mo

SearchPage::sort

public static SearchPage::sort(ConfigEntityInterface $a, ConfigEntityInterface $b) Helper callback for uasort() to sort configuration entities by weight and label. Overrides ConfigEntityBase::sort File core/modules/search/src/Entity/SearchPage.php, line 207 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { /** @var $a \Drupal\search\SearchPageInterface */ /** @var

SearchPage::searchPageRepository

protected SearchPage::searchPageRepository() Wraps the search page repository. Return value \Drupal\search\SearchPageRepositoryInterface A search page repository object. File core/modules/search/src/Entity/SearchPage.php, line 244 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code protected function searchPageRepository() { return \Drupal::service('search.search_page_repository'); }

SearchPage::routeBuilder

protected SearchPage::routeBuilder() Wraps the route builder. Return value \Drupal\Core\Routing\RouteBuilderInterface An object for state storage. File core/modules/search/src/Entity/SearchPage.php, line 224 Class SearchPage Defines a configured search page. Namespace Drupal\search\Entity Code protected function routeBuilder() { return \Drupal::service('router.builder'); }