Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OverviewTerms.php

function OverviewTerms::submitReset

Redirects to confirmation form for the reset action.

File

core/modules/taxonomy/src/Form/OverviewTerms.php, line 603

Class

OverviewTerms
Provides terms overview form for a taxonomy vocabulary.

Namespace

Drupal\taxonomy\Form

Code

public function submitReset(array &$form, FormStateInterface $form_state) {
    
    /** @var \Drupal\taxonomy\VocabularyInterface $vocabulary */
    $vocabulary = $form_state->get([
        'taxonomy',
        'vocabulary',
    ]);
    $form_state->setRedirectUrl($vocabulary->toUrl('reset-form'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal