function StylePluginBase::usesTokens
Same name in other branches
- 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::usesTokens()
- 8.9.x core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::usesTokens()
- 10 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::usesTokens()
Return TRUE if this style uses tokens.
Used to ensure we don't fetch tokens when not needed for performance.
File
-
core/
modules/ views/ src/ Plugin/ views/ style/ StylePluginBase.php, line 202
Class
- StylePluginBase
- Base class for views style plugins.
Namespace
Drupal\views\Plugin\views\styleCode
public function usesTokens() {
if ($this->usesRowClass()) {
$class = $this->options['row_class'];
if (str_contains($class, '{{')) {
return TRUE;
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.