public function ConfigPagesForm::configPagesClearValues in Config Pages 8.3
Same name and namespace in other branches
- 8 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.
Parameters
array $form:
FormStateInterface $form_state:
File
- src/
ConfigPagesForm.php, line 259
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', [
'config_pages' => $entity
->id(),
]));
}