Drupal 8  8.0.2
DbLogFormInjectionTest Class Reference
Inheritance diagram for DbLogFormInjectionTest:

Public Member Functions

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

Static Public Attributes

static $modules = array('system', 'dblog', 'user')
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $logger
 

Detailed Description

Tests serializing a form with an injected dblog logger instance.

dblog

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.

getFormId ( )

{Returns a unique string identifying the form.

Returns
string The unique string identifying the form.
}

Implements FormInterface.

process (   $element)

Process callback.

Parameters
array$elementForm element
Returns
array Processed element.
setUp ( )
protected

{}

References Entity\create(), Drupal\logger(), and Drupal\service().

Here is the call graph for this function:

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 FormStateInterface\setRebuild().

Here is the call graph for this function:

testLoggerSerialization ( )

Tests db log injection serialization.

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: