You are here

public function WebformElementInterface::replaceTokens in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Plugin

Code

public function replaceTokens(array &$element, EntityInterface $entity = NULL);