Drupal 8  8.0.2
ConfigTestForm Class Reference
Inheritance diagram for ConfigTestForm:

Public Member Functions

 __construct (QueryFactory $entity_query)
 
 form (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)
 
static updateSize (array $form, FormStateInterface $form_state)
 
static changeSize (array $form, FormStateInterface $form_state)
 

Protected Attributes

 $entityQuery
 
- 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

Form controller for the test config edit forms.

Constructor & Destructor Documentation

__construct ( QueryFactory  $entity_query)

Constructs a new ConfigTestForm.

Parameters
\Drupal\Core\Entity\Query\QueryFactory$entity_queryThe entity query.

References Drupal\entityQuery().

Here is the call graph for this function:

Member Function Documentation

static changeSize ( array  $form,
FormStateInterface  $form_state 
)
static

Element submit handler for non-JS testing.

References FormStateInterface\setRebuild().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

form ( array  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\moduleHandler(), LanguageInterface\STATE_ALL, and t().

Here is the call graph for this function:

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$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
Returns
int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.
}

Implements EntityFormInterface.

References format_string(), and FormStateInterface\setRedirectUrl().

Here is the call graph for this function:

static updateSize ( array  $form,
FormStateInterface  $form_state 
)
static

Ajax callback for the size selection element.


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