SearchPageFormBase::validateForm

public SearchPageFormBase::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 FormBase::validateForm File core/modules/search/src/Form/SearchPageFormBase.php, line 143 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public funct

SearchPageFormBase::submitForm

public SearchPageFormBase::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unles

SearchPageFormBase::save

public SearchPageFormBase::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 op

SearchPageFormBase::getBaseFormId

public SearchPageFormBase::getBaseFormId() Returns a string identifying the base form. Return value string|null The string identifying the base form or NULL if this is not a base form. Overrides EntityForm::getBaseFormId File core/modules/search/src/Form/SearchPageFormBase.php, line 71 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public function getBaseFormId() { return 'search_entity_form'; }

SearchPageFormBase::form

public SearchPageFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/search/src/Form/SearchPageFormBase.php, line 86 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public function form(array $form, FormStateInterface $form_state) { $form['labe

SearchPageFormBase::exists

public SearchPageFormBase::exists($id) Determines if the search page entity already exists. Parameters string $id: The search configuration ID. Return value bool TRUE if the search configuration exists, FALSE otherwise. File core/modules/search/src/Form/SearchPageFormBase.php, line 133 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public function exists($id) { $entity = $this->entityQuery->get('search_page') ->conditi

SearchPageFormBase::create

public static SearchPageFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servi

SearchPageFormBase::buildForm

public SearchPageFormBase::buildForm(array $form, FormStateInterface $form_state) 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 EntityForm::buildForm File core/modules/search/src/Form/SearchPageFormBase.php, line 78 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\

SearchPageFormBase::$searchPageRepository

The search page repository. Type: \Drupal\search\SearchPageRepositoryInterface File core/modules/search/src/Form/SearchPageFormBase.php, line 43 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code protected $searchPageRepository;

SearchPageFormBase::$entityQuery

The entity query factory. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/search/src/Form/SearchPageFormBase.php, line 36 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code protected $entityQuery;