public function PermissionsLockForm::submitForm in Permissions Lock 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ PermissionsLockForm.php, line 160
Class
Namespace
Drupal\permissions_lock\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
drupal_set_message($this
->t('The configuration options have been saved.'));
//echo '<pre>'; print_r($form_state->getValues()); die;
//echo 'asda';
$this
->config('permissions_lock.settings')
->set('permissions_lock_locked_roles', $form_state
->getValue('permissions_lock_locked_roles'))
->set('permissions_lock_locked_perm', $form_state
->getValue('permissions_lock_locked_perm'))
->save();
//$this->config('permissions_lock.settings')->delete();
}