You are here

public function ViewsPluginInterface::globalTokenForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::globalTokenForm()
  2. 9 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::globalTokenForm()

Adds elements for available core tokens to a form.

Parameters

array $form: The form array to alter, passed by reference.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

core/modules/views/src/Plugin/views/ViewsPluginInterface.php, line 101

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenForm(&$form, FormStateInterface $form_state);