function 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.
1 method overrides ViewsPluginInterface::globalTokenForm()
- PluginBase::globalTokenForm in core/
modules/ views/ src/ Plugin/ views/ PluginBase.php - Adds elements for available core tokens to a form.
File
-
core/
modules/ views/ src/ Plugin/ views/ ViewsPluginInterface.php, line 108
Class
- ViewsPluginInterface
- Provides an interface for all views plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function globalTokenForm(&$form, FormStateInterface $form_state);