Home
last modified time | relevance | path

Searched refs:form_state (Results 1 – 25 of 2086) sorted by relevance

12345678910>>...84

/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/drupal/sites/default/boinc/modules/contrib/panels/panels_mini/plugins/export_ui/
H A Dpanels_mini_ui.class.php9 function list_form(&$form, &$form_state) { argument
13 parent::list_form($form, $form_state);
143 $form_state['item']->category = $form_state['values']['category'];
164 $name = $this->edit_cache_get_key($form_state['item'], $form_state['form type']);
183 if ($form_state['op'] == 'add' && empty($form_state['item']->display)) {
187 $form_state['display'] = &$form_state['item']->display;
223 $form_state['item']->temp_layout = $form_state['values']['layout'];
228 $form_state['item']->display->layout = $form_state['values']['layout'];
236 $form_state['display'] = &$form_state['item']->display;
237 $form_state['layout'] = $form_state['item']->temp_layout;
[all …]
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/Tests/Core/Form/
H A DFormStateTest.php65 $form_state = new FormState();
107 $form_state = new FormState();
109 $form_state->clearErrors();
137 $form_state = new FormState();
148 $form_state = new FormState();
158 $form_state = new FormState();
169 $form_state = new FormState();
263 $form_state->setMethod('GET');
311 $form_state->setCached();
323 $form_state->setCached();
[all …]
H A DFormBuilderTest.php59 $form_state = new FormState();
71 $form_state = new FormState();
87 $form_state = new FormState();
102 $form_state = new FormState();
124 $form_state = new FormState();
152 $form_state = new FormState();
201 $form_state = new FormState();
366 $form_state->setRebuild();
404 $form_state->setRebuild();
454 $form_state->setExecuted();
[all …]
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/Tests/Core/Form/
H A DFormStateTest.php65 $form_state = new FormState();
107 $form_state = new FormState();
109 $form_state->clearErrors();
137 $form_state = new FormState();
148 $form_state = new FormState();
158 $form_state = new FormState();
169 $form_state = new FormState();
263 $form_state->setMethod('GET');
311 $form_state->setCached();
323 $form_state->setCached();
[all …]
H A DFormBuilderTest.php59 $form_state = new FormState();
71 $form_state = new FormState();
87 $form_state = new FormState();
102 $form_state = new FormState();
124 $form_state = new FormState();
152 $form_state = new FormState();
201 $form_state = new FormState();
366 $form_state->setRebuild();
404 $form_state->setRebuild();
454 $form_state->setExecuted();
[all …]
/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Form/
H A DFormBuilder.php212 $form_state = new FormState();
386 $form_state->setCached();
442 $form_state->setGroups([]);
485 $form_state->setUserInput($form_state->getValues());
487 $form_state->setProgrammed();
492 $form_state->setSubmitted();
496 $form_state->clearErrors();
553 $form_state->setValues([]);
556 if ($form_state->isMethodType('get') && $form_state->getAlwaysProcess()) {
640 if (!$form_state->isRebuilding() && $form_state->isCached()) {
[all …]
H A DFormValidator.php82 call_user_func_array($form_state->prepareCallback($callback), [&$form, &$form_state]);
92 if ($form_state->isValidationEnforced()) {
93 $form_state->setValidationComplete(FALSE);
97 if ($form_state->isValidationComplete()) {
106 …if (!$this->csrfToken->validate($form_state->getValue('form_token'), $form['#token']) || $form_sta…
107 $this->setInvalidTokenError($form_state);
183 $form_state->setValues($values);
202 $form_state->setValidationComplete();
248 $form_state->setLimitValidationErrors($this->determineLimitValidationErrors($form_state));
280 …call_user_func_array($form_state->prepareCallback($callback), [&$elements, &$form_state, &$complet…
[all …]
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Form/
H A DFormBuilder.php212 $form_state = new FormState();
386 $form_state->setCached();
442 $form_state->setGroups([]);
485 $form_state->setUserInput($form_state->getValues());
487 $form_state->setProgrammed();
492 $form_state->setSubmitted();
496 $form_state->clearErrors();
553 $form_state->setValues([]);
556 if ($form_state->isMethodType('get') && $form_state->getAlwaysProcess()) {
640 if (!$form_state->isRebuilding() && $form_state->isCached()) {
[all …]
H A DFormValidator.php82 call_user_func_array($form_state->prepareCallback($callback), [&$form, &$form_state]);
92 if ($form_state->isValidationEnforced()) {
93 $form_state->setValidationComplete(FALSE);
97 if ($form_state->isValidationComplete()) {
106 …if (!$this->csrfToken->validate($form_state->getValue('form_token'), $form['#token']) || $form_sta…
107 $this->setInvalidTokenError($form_state);
183 $form_state->setValues($values);
202 $form_state->setValidationComplete();
250 $form_state->setLimitValidationErrors($this->determineLimitValidationErrors($form_state));
282 …call_user_func_array($form_state->prepareCallback($callback), [&$elements, &$form_state, &$complet…
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/system/src/Form/
H A DSiteInformationForm.php161 return parent::buildForm($form, $form_state);
169 if ($form_state->isValueEmpty('site_frontpage')) {
186 if (!$form_state->isValueEmpty('site_403')) {
187 …$form_state->setValueForElement($form['error_page']['site_403'], $this->aliasManager->getPathByAli…
189 if (!$form_state->isValueEmpty('site_404')) {
199 …if (!$form_state->isValueEmpty('site_403') && !$this->pathValidator->isValid($form_state->getValue…
203 …if (!$form_state->isValueEmpty('site_404') && !$this->pathValidator->isValid($form_state->getValue…
207 parent::validateForm($form, $form_state);
215 ->set('name', $form_state->getValue('site_name'))
216 ->set('mail', $form_state->getValue('site_mail'))
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/system/src/Form/
H A DSiteInformationForm.php155 return parent::buildForm($form, $form_state);
163 if ($form_state->isValueEmpty('site_frontpage')) {
180 if (!$form_state->isValueEmpty('site_403')) {
181 …$form_state->setValueForElement($form['error_page']['site_403'], $this->aliasManager->getPathByAli…
183 if (!$form_state->isValueEmpty('site_404')) {
193 …if (!$form_state->isValueEmpty('site_403') && !$this->pathValidator->isValid($form_state->getValue…
197 …if (!$form_state->isValueEmpty('site_404') && !$this->pathValidator->isValid($form_state->getValue…
201 parent::validateForm($form, $form_state);
209 ->set('name', $form_state->getValue('site_name'))
210 ->set('mail', $form_state->getValue('site_mail'))
[all …]
/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Entity/
H A DContentEntityForm.php125 $this->getFormDisplay($form_state)->buildForm($this->entity, $form, $form_state);
149 parent::submitForm($form, $form_state);
272 …$this->getFormDisplay($form_state)->flagWidgetsErrorsFromViolations($violations, $form, $form_stat…
284 $this->initFormLangcodes($form_state);
291 parent::init($form_state);
309 if (!$form_state->has('langcode')) {
321 $this->initFormLangcodes($form_state);
322 return $form_state->get('langcode');
329 $this->initFormLangcodes($form_state);
330 return $form_state->get('langcode') == $form_state->get('entity_default_langcode');
[all …]
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Entity/
H A DContentEntityForm.php121 $this->getFormDisplay($form_state)->buildForm($this->entity, $form, $form_state);
145 parent::submitForm($form, $form_state);
268 …$this->getFormDisplay($form_state)->flagWidgetsErrorsFromViolations($violations, $form, $form_stat…
280 $this->initFormLangcodes($form_state);
287 parent::init($form_state);
305 if (!$form_state->has('langcode')) {
317 $this->initFormLangcodes($form_state);
318 return $form_state->get('langcode');
325 $this->initFormLangcodes($form_state);
326 return $form_state->get('langcode') == $form_state->get('entity_default_langcode');
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/media_library/src/Form/
H A DAddFormBase.php121 $state = $this->getMediaLibraryState($form_state);
501 $media_type = $this->getMediaType($form_state);
517 $form_state->setRebuild();
568 $added_media = $form_state->get('media');
595 $added_media = $form_state->get('media');
603 if ($form_state::hasAnyErrors()) {
698 if ($form_state::hasAnyErrors()) {
704 }, $this->getAddedMediaItems($form_state));
749 if ($form_state::hasAnyErrors()) {
758 }, $this->getCurrentMediaItems($form_state));
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/media_library/src/Form/
H A DAddFormBase.php118 $state = $this->getMediaLibraryState($form_state);
498 $media_type = $this->getMediaType($form_state);
514 $form_state->setRebuild();
565 $added_media = $form_state->get('media');
592 $added_media = $form_state->get('media');
600 if ($form_state::hasAnyErrors()) {
695 if ($form_state::hasAnyErrors()) {
701 }, $this->getAddedMediaItems($form_state));
746 if ($form_state::hasAnyErrors()) {
755 }, $this->getCurrentMediaItems($form_state));
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/system/tests/modules/form_test/src/Form/
H A DFormTestStorageForm.php32 if ($form_state->isRebuilding()) {
33 $form_state->setUserInput([]);
36 $storage = $form_state->getStorage();
38 $user_input = $form_state->getUserInput();
49 $form_state->setStorage($storage);
93 $form_state->setCached();
107 $form_state->setCached();
130 $form_state->set(['thing', 'title'], $form_state->getValue('title'));
131 $form_state->set(['thing', 'value'], $form_state->getValue('value'));
132 $form_state->setRebuild();
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/system/tests/modules/form_test/src/Form/
H A DFormTestStorageForm.php32 if ($form_state->isRebuilding()) {
33 $form_state->setUserInput([]);
36 $storage = $form_state->getStorage();
38 $user_input = $form_state->getUserInput();
49 $form_state->setStorage($storage);
93 $form_state->setCached();
107 $form_state->setCached();
130 $form_state->set(['thing', 'title'], $form_state->getValue('title'));
131 $form_state->set(['thing', 'value'], $form_state->getValue('value'));
132 $form_state->setRebuild();
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/views_ui/src/Form/Ajax/
H A DViewsFormBase.php89 $view = $form_state->get('view');
90 $key = $form_state->get('form_key');
129 if (!$form_state->isSubmitted() || $form_state->get('rerender')) {
144 $form_state->setUserInput([]);
146 if (!$form_state->get('ajax')) {
149 $form_state->set('url', $form_url);
152 elseif (!$form_state->get('ajax')) {
201 if (!$form_state->has('rerender')) {
204 $ajax = $form_state->get('ajax');
209 $form_state->disableCache();
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/views_ui/src/Form/Ajax/
H A DViewsFormBase.php90 $view = $form_state->get('view');
130 if (!$form_state->isSubmitted() || $form_state->get('rerender')) {
144 $form_state->setUserInput([]);
146 if (!$form_state->get('ajax')) {
149 $form_state->set('url', $form_url);
152 elseif (!$form_state->get('ajax')) {
201 if (!$form_state->has('rerender')) {
202 $form_state->set('rerender', FALSE);
204 $ajax = $form_state->get('ajax');
209 $form_state->disableCache();
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/field_ui/src/Form/
H A DFieldStorageConfigEditForm.php50 $form_state->set('field_config', $field);
56 return parent::buildForm($form, $form_state);
63 $form = parent::form($form, $form_state);
85 'entity_type' => $form_state->get('entity_type_id'),
86 'bundle' => $form_state->get('bundle'),
168 $elements = parent::actions($form, $form_state);
186 …if ($form_state->getValue('cardinality') === 'number' && !$form_state->getValue('cardinality_numbe…
213 $form_state->setValue('cardinality', $form_state->getValue('cardinality_number'));
216 return parent::buildEntity($form, $form_state);
230 $form_state->setRedirectUrl($next_destination);
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/field_ui/src/Form/
H A DFieldStorageConfigEditForm.php54 $form_state->set('field_config', $field);
60 return parent::buildForm($form, $form_state);
67 $form = parent::form($form, $form_state);
89 'entity_type' => $form_state->get('entity_type_id'),
90 'bundle' => $form_state->get('bundle'),
172 $elements = parent::actions($form, $form_state);
190 …if ($form_state->getValue('cardinality') === 'number' && !$form_state->getValue('cardinality_numbe…
217 $form_state->setValue('cardinality', $form_state->getValue('cardinality_number'));
220 return parent::buildEntity($form, $form_state);
234 $form_state->setRedirectUrl($next_destination);
[all …]
/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/drupal/sites/default/boinc/modules/contrib/panels/plugins/display_renderers/
H A Dpanels_renderer_editor.class.php21 $form_state = array(
1097 if ($form_state['style'] != $form_state['old_style']) {
1514 $form_state['cache']->new_pane = $form_state['pane'];
1585 $form_state['method'] = $form_state['values']['method'];
1645 $form_state['conf']['settings'] = $form_state['values']['settings'];
1694 $form_state['old_style'] = $form_state['style'];
1695 $form_state['style'] = $form_state['values']['style'];
1735 $function($form, $form_state['values']['settings'], $form_state);
1745 $function($form, $form_state['values']['settings'], $form_state);
1748 $form_state['conf'] = $form_state['values']['settings'];
[all …]
/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/drupal/sites/default/boinc/modules/contrib/panels/plugins/export_ui/
H A Dpanels_layouts_ui.class.php36 function edit_form(&$form, &$form_state) { argument
40 $form_state['item']->plugin = $form_state['function args'][2];
43 parent::edit_form($form, $form_state);
101 $form_state['display'] = &$display;
103 $form_state['no buttons'] = TRUE;
106 $form_state['cache_key'] = $cache_key;
108 $form_state['display_title'] = FALSE;
125 $form_state['item']->settings = $form_state['display']->layout_settings;
131 parent::list_form($form, $form_state);
160 …if ($form_state['values']['category'] != 'all' && $form_state['values']['category'] != $item->cate…
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/user/src/Form/
H A DUserLoginForm.php134 $account = $this->userStorage->load($form_state->get('uid'));
138 $form_state->setRedirect(
154 if (!$form_state->isValueEmpty('name') && user_is_blocked($form_state->getValue('name'))) {
156 …$form_state->setErrorByName('name', $this->t('The username %name has not been activated or is bloc…
166 $password = trim($form_state->getValue('pass'));
168 if (!$form_state->isValueEmpty('name') && strlen($password) > 0) {
175 $form_state->set('flood_control_triggered', 'ip');
197 $form_state->set('flood_control_triggered', 'user');
204 $form_state->set('uid', $uid);
215 if (!$form_state->get('uid')) {
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/system/tests/modules/batch_test/src/Form/
H A DBatchTestChainedForm.php59 batch_test_stack('value = ' . $form_state->getValue('value'));
61 $value = &$form_state->getValue('value');
65 $form_state->setRedirect('batch_test.redirect');
73 batch_test_stack('value = ' . $form_state->getValue('value'));
75 $value = &$form_state->getValue('value');
79 $form_state->setRedirect('batch_test.redirect');
87 batch_test_stack('value = ' . $form_state->getValue('value'));
89 $value = &$form_state->getValue('value');
92 $form_state->setRedirect('batch_test.redirect');
102 $value = &$form_state->getValue('value');
[all …]

12345678910>>...84