public function ConfigPagesForm::configPagesClearValues in Config Pages 8
Same name and namespace in other branches
- 8.3 src/ConfigPagesForm.php \Drupal\config_pages\ConfigPagesForm::configPagesClearValues()
- 8.2 src/ConfigPagesForm.php \Drupal\config_pages\ConfigPagesForm::configPagesClearValues()
Form submit.
Clear field values submit callback.
File
- src/
ConfigPagesForm.php, line 188
Class
- ConfigPagesForm
- Form controller for the custom config page edit forms.
Namespace
Drupal\config_pagesCode
public function configPagesClearValues(array $form, FormStateInterface $form_state) {
$entity = $this->entity;
$form_state
->setRedirectUrl(Url::fromRoute('entity.config_pages.clear_confirmation', array(
'config_pages' => $entity
->id(),
)));
}