You are here

public function ShareMessageInterface::getTokenizedField in Share Message 8

Tokenizes a field, if it is set.

Parameters

string $property_value: A field value.

array $context: A context array for Token::replace().

string $default: (optional) Default value if field value is not set.

Return value

string If existent, the field value with tokens replace, the default otherwise.

1 method overrides ShareMessageInterface::getTokenizedField()
ShareMessage::getTokenizedField in src/Entity/ShareMessage.php
Tokenizes a field, if it is set.

File

src/ShareMessageInterface.php, line 152

Class

ShareMessageInterface
Define interface for ShareMessage entity.

Namespace

Drupal\sharemessage

Code

public function getTokenizedField($property_value, $context, $default = '');