SearchController::editTitle

public SearchController::editTitle(SearchPageInterface $search_page) Route title callback. Parameters \Drupal\search\SearchPageInterface $search_page: The search page entity. Return value string The title for the search page edit form. File core/modules/search/src/Controller/SearchController.php, line 191 Class SearchController Route controller for search. Namespace Drupal\search\Controller Code public function editTitle(SearchPageInterface $search_page) { return $this->t('Edit

SearchController::create

public static SearchController::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 service

SearchController::$searchPageRepository

The search page repository. Type: \Drupal\search\SearchPageRepositoryInterface File core/modules/search/src/Controller/SearchController.php, line 23 Class SearchController Route controller for search. Namespace Drupal\search\Controller Code protected $searchPageRepository;

SearchController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/search/src/Controller/SearchController.php, line 37 Class SearchController Route controller for search. Namespace Drupal\search\Controller Code protected $renderer;

SearchController::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/modules/search/src/Controller/SearchController.php, line 30 Class SearchController Route controller for search. Namespace Drupal\search\Controller Code protected $logger;

SearchController

Route controller for search. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\search\Controller\SearchController File core/modules/search/src/Controller/SearchController.php, line 16 Namespace Drupal\search\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected proper

SearchBlockForm::__construct

public SearchBlockForm::__construct(SearchPageRepositoryInterface $search_page_repository, ConfigFactoryInterface $config_factory, RendererInterface $renderer) Constructs a new SearchBlockForm. Parameters \Drupal\search\SearchPageRepositoryInterface $search_page_repository: The search page repository. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Render\RendererInterface $renderer: The renderer. File core/modules/search/src/Form/SearchBlockForm.ph

SearchBlockForm::submitForm

public SearchBlockForm::submitForm(array &$form, FormStateInterface $form_state) Form submission 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 FormInterface::submitForm File core/modules/search/src/Form/SearchBlockForm.php, line 115 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\Form Code public functio

SearchBlockForm::getFormId

public SearchBlockForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/search/src/Form/SearchBlockForm.php, line 68 Class SearchBlockForm Builds the search form for the search block. Namespace Drupal\search\Form Code public function getFormId() { return 'search_block_form'; }

SearchBlockForm::create

public static SearchBlockForm::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 service