function FieldHandlerInterface::getRenderTokens

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getRenderTokens()
  2. 8.9.x core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getRenderTokens()
  3. 11.x core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::getRenderTokens()

Gets the 'render' tokens to use for advanced rendering.

This runs through all of the fields and arguments that are available and gets their values. This will then be used in one giant str_replace().

Parameters

mixed $item: The item to render.

Return value

array An array of available tokens

1 method overrides FieldHandlerInterface::getRenderTokens()
FieldPluginBase::getRenderTokens in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Gets the 'render' tokens to use for advanced rendering.

File

core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php, line 268

Class

FieldHandlerInterface
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

public function getRenderTokens($item);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.