Drupal 8  8.0.2
CronForm Class Reference
Inheritance diagram for CronForm:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, StateInterface $state, CronInterface $cron, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $state
 
 $cron
 
 $dateFormatter
 
 $moduleHandler
 

Detailed Description

Configure cron settings for this site.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
StateInterface  $state,
CronInterface  $cron,
DateFormatterInterface  $date_formatter,
ModuleHandlerInterface  $module_handler 
)

Constructs a CronForm object.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe factory for configuration objects.
\Drupal\Core\State\StateInterface$stateThe state key value store.
\Drupal\Core\CronInterface$cronThe cron service.
\Drupal\Core\Datetime\DateFormatterInterface$date_formatterThe date formatter service.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler service.

References Drupal\moduleHandler(), and Drupal\state().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\moduleHandler(), Drupal\state(), t(), and Drupal\url().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

Runs cron and reloads the page.

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

Here is the call graph for this function:

Field Documentation

Drupal Core Extension ModuleHandlerInterface $moduleHandler
protected

The module handler service.


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