Issue #3497021: Removed getFormName()
Open
requested to merge issue/drupal-3497021:3497021-confirmforminterfacegetformname-serves-no into 11.x
4 unresolved threads
Closes #3497021
Merge request reports
Activity
added 1 commit
added 1 commit
added 1 commit
added 174 commits
-
a9f40229...dcb0e065 - 173 commits from branch
project:11.x
- 8fc5771e - Merge branch drupal:11.x into 3497021-confirmforminterfacegetformname-serves-no
-
a9f40229...dcb0e065 - 173 commits from branch
59 59 * {@inheritdoc} 60 60 */ 61 61 public function submitForm(array &$form, FormStateInterface $form_state) { 62 if ($form['confirm']) { 63 // Ask each active search page to mark itself for re-index. 64 $search_page_repository = \Drupal::service('search.search_page_repository'); 65 foreach ($search_page_repository->getIndexableSearchPages() as $entity) { 66 $entity->getPlugin()->markForReindex(); 67 } 68 $this->messenger()->addStatus($this->t('All search indexes will be rebuilt.')); 69 $form_state->setRedirectUrl($this->getCancelUrl()); 62 // Ask each active search page to mark itself for re-index. 211 $admin_form_mock = []; 212 $admin_form_state = $form_state; 213 $admin_form_state->unsetValue('user_cancel_confirm'); 214 // The $user global is not a complete user entity, so load the full 215 // entity. 216 $account = $this->userStorage->load($uid); 217 $admin_form = $this->entityTypeManager->getFormObject('user', 'cancel'); 218 $admin_form->setEntity($account); 219 // Calling this directly required to init form object with $account. 220 $admin_form->buildForm($admin_form_mock, $admin_form_state); 221 $admin_form->submitForm($admin_form_mock, $admin_form_state); 222 } 223 else { 224 user_cancel($form_state->getValues(), $uid, $form_state->getValue('user_cancel_method')); 225 } 203 foreach ($form_state->getValue('accounts') as $uid => $value) { added 3 commits
-
8fc5771e...b23f4270 - 2 commits from branch
project:11.x
- 66aac499 - Merge branch drupal:11.x into 3497021-confirmforminterfacegetformname-serves-no
-
8fc5771e...b23f4270 - 2 commits from branch
added 1 commit
added 24 commits
-
404a2a86...29a38829 - 10 commits from branch
project:11.x
- 29a38829...b6089155 - 4 earlier commits
- 5261aa3b - Issue #3497021: Fixed phpcs.
- a4b74c92 - Issue #3497021: Added check for confirm key and update the tests.
- 7b83b16c - Issue #3497021: Updated tests.
- b48bffb5 - Issue #3497021: Removed checks for ['confirm']
- 6fde13f4 - Issue #3497021: Removed an extra line.
- 25af6c0d - Issue #3497021: Added Deprecations.
- 7f04055b - Issue #3497021: Added Return types.
- 3db2f4d3 - Issue #3497021: ConfirmFormInterface::getFormName() serves no purpose in ConfirmFormBase
- 737094b1 - remove typehint
- 40dd3cc0 - Fix docblocks
Toggle commit list-
404a2a86...29a38829 - 10 commits from branch
added 53 commits
-
40dd3cc0...6dd918c9 - 52 commits from branch
project:11.x
- 451212c1 - Merge branch '11.x' into '3497021-confirmforminterfacegetformname-serves-no'
-
40dd3cc0...6dd918c9 - 52 commits from branch
40 40 } 41 41 42 42 /** 43 * {@inheritdoc} 43 * Returns the internal name used to refer to the confirmation item. 44 * 45 * @return string 46 * The internal form name. 44 47 */ 45 48 public function getFormName() { 49 @trigger_error('ConfirmFormBase::getFormName() is deprecated in drupal:11.2.0 and will be removed in drupal:12.0.0. Implementations should remove this method. See https://www.drupal.org/node/3505037', E_USER_DEPRECATED); changed this line in version 18 of the diff
42 42 } 43 43 44 44 /** 45 * {@inheritdoc} 45 * Returns the internal name used to refer to the confirmation item. 46 * 47 * @return string 48 * The internal form name. 46 49 */ 47 50 public function getFormName() { 51 @trigger_error('ConfirmFormBase::getFormName() is deprecated in drupal:11.2.0 and will be removed in drupal:12.0.0. Implementations should remove this method. See https://www.drupal.org/node/3505037', E_USER_DEPRECATED); changed this line in version 18 of the diff
Please register or sign in to reply