Token
class Token
Stores token data in a hidden form field.
This is generally used to protect against cross-site forgeries. A token element is automatically added to each Drupal form by an implementation of \Drupal\Core\Form\FormBuilderInterface::prepareForm() so you don't generally have to add one yourself.
Plugin annotation
@FormElement("token")
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements 登录查看完整内容