function FieldPluginBase::getFieldTokenPlaceholder

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

Returns a token placeholder for the current field.

Return value

string A token placeholder.

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 1697

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

protected function getFieldTokenPlaceholder() {
    return '{{ ' . $this->options['id'] . ' }}';
}

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