protected function ExtraFieldTokenPlugin::getProcessedTokenValue in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldTokenPlugin::getProcessedTokenValue()
Get processed token value token.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity:
Return value
string The process token value.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to ExtraFieldTokenPlugin::getProcessedTokenValue()
- ExtraFieldTokenPlugin::build in src/
Plugin/ ExtraFieldType/ ExtraFieldTokenPlugin.php - Build the render array of the extra field type contents.
File
- src/
Plugin/ ExtraFieldType/ ExtraFieldTokenPlugin.php, line 148
Class
- ExtraFieldTokenPlugin
- Define extra field token plugin.
Namespace
Drupal\entity_extra_field\Plugin\ExtraFieldTypeCode
protected function getProcessedTokenValue(ContentEntityInterface $entity) {
$configuration = $this
->getConfiguration();
$token_value = is_array($configuration['token']) ? $configuration['token']['value'] : $configuration['token'];
return $this
->processEntityToken($token_value, $entity);
}