public function BlockPluginUI::formSubmit

Overrides \Drupal\system\Plugin\PluginUIBase::formSubmit().

Overrides PluginUIBase::formSubmit

File

drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php, line 121

Class

BlockPluginUI
Defines an overrideable UI for block selection, configuration, and placement.

Namespace

Drupal\block\Plugin\PluginUI

Code

public function formSubmit($form, &$form_state) {
  $form_state['redirect'] = 'admin/structure/block/add/' . $form_state['values']['block'] . '/' . $form_state['values']['theme'];
}