You are here

protected function BaseUpdateRunner::getUpdateType in Scheduled Updates 8

Get Scheduled Update Type from the Form State.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

ScheduledUpdateTypeInterface|null

2 calls to BaseUpdateRunner::getUpdateType()
BaseUpdateRunner::buildConfigurationForm in src/Plugin/BaseUpdateRunner.php
Form constructor.
IndependentUpdateRunner::buildConfigurationForm in src/Plugin/UpdateRunner/IndependentUpdateRunner.php
Form constructor.

File

src/Plugin/BaseUpdateRunner.php, line 723
Contains \Drupal\scheduled_updates\Plugin\BaseUpdateRunner.

Class

BaseUpdateRunner

Namespace

Drupal\scheduled_updates\Plugin

Code

protected function getUpdateType(FormStateInterface $form_state) {
  return $form_state
    ->get('scheduled_update_type');
}