Drupal 8  8.0.2
FileTestForm Class Reference
Inheritance diagram for FileTestForm:

Public Member Functions

 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Detailed Description

File test form class.

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{Form constructor.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
Returns
array The form structure.
}

Implements FormInterface.

References FILE_EXISTS_ERROR, FILE_EXISTS_RENAME, FILE_EXISTS_REPLACE, and t().

Here is the call graph for this function:

getFormId ( )

{Returns a unique string identifying the form.

Returns
string The unique string identifying the form.
}

Implements FormInterface.

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{Form submission handler.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
}

Implements FormInterface.

References FILE_CREATE_DIRECTORY, file_prepare_directory(), FormStateInterface\getValue(), FormStateInterface\isValueEmpty(), FormStateInterface\setValue(), Drupal\state(), and t().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{Form validation handler.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
}

Implements FormInterface.


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