Drupal 8  8.0.2
SearchPageFormBase Class Reference
Inheritance diagram for SearchPageFormBase:

Public Member Functions

 __construct (QueryFactory $entity_query, SearchPageRepositoryInterface $search_page_repository)
 
 getBaseFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 form (array $form, FormStateInterface $form_state)
 
 exists ($id)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from EntityForm
 setOperation ($operation)
 
 getBaseFormId ()
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 form (array $form, FormStateInterface $form_state)
 
 processForm ($element, FormStateInterface $form_state, $form)
 
 afterBuild (array $element, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 buildEntity (array $form, FormStateInterface $form_state)
 
 getEntity ()
 
 setEntity (EntityInterface $entity)
 
 getEntityFromRouteMatch (RouteMatchInterface $route_match, $entity_type_id)
 
 getOperation ()
 
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
 setEntityManager (EntityManagerInterface $entity_manager)
 
 setEntityTypeManager (EntityTypeManagerInterface $entity_type_manager)
 
- Public Member Functions inherited from EntityFormInterface
 setStringTranslation (TranslationInterface $string_translation)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $entity
 
 $plugin
 
 $entityQuery
 
 $searchPageRepository
 
- Protected Attributes inherited from EntityForm
 $operation
 
 $moduleHandler
 
 $entityManager
 
 $entityTypeManager
 
 $entity
 

Additional Inherited Members

- Protected Member Functions inherited from EntityForm
 init (FormStateInterface $form_state)
 
 actionsElement (array $form, FormStateInterface $form_state)
 
 actions (array $form, FormStateInterface $form_state)
 
 copyFormValuesToEntity (EntityInterface $entity, array $form, FormStateInterface $form_state)
 
 prepareEntity ()
 
 prepareInvokeAll ($hook, FormStateInterface $form_state)
 

Detailed Description

Provides a base form for search pages.

Constructor & Destructor Documentation

__construct ( QueryFactory  $entity_query,
SearchPageRepositoryInterface  $search_page_repository 
)

Constructs a new search form.

Parameters
\Drupal\Core\Entity\Query\QueryFactory$entity_queryThe entity query.
\Drupal\search\SearchPageRepositoryInterface$search_page_repositoryThe search page repository.

References Drupal\entityQuery().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

static create ( ContainerInterface  $container)
static

{}

exists (   $id)

Determines if the search page entity already exists.

Parameters
string$idThe search configuration ID.
Returns
bool TRUE if the search configuration exists, FALSE otherwise.

References Drupal\entityQuery().

Here is the call graph for this function:

form ( array  $form,
FormStateInterface  $form_state 
)

{}

References t().

Here is the call graph for this function:

getBaseFormId ( )

{Returns a string identifying the base form.

Returns
string|null The string identifying the base form or NULL if this is not a base form.
}

Implements BaseFormIdInterface.

save ( array  $form,
FormStateInterface  $form_state 
)

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\entityQuery(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: