public function WebformElementInterface::replaceTokens in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::replaceTokens()
Replace tokens for all element properties.
Parameters
array $element: An element.
\Drupal\Core\Entity\EntityInterface|null $entity: A webform or webform submission entity.
1 method overrides WebformElementInterface::replaceTokens()
- WebformElementBase::replaceTokens in src/
Plugin/ WebformElementBase.php - Replace tokens for all element properties.
File
- src/
Plugin/ WebformElementInterface.php, line 387
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function replaceTokens(array &$element, EntityInterface $entity = NULL);