public function TokenCustom::getFormattedContent in Custom Tokens 8
Get formatted content.
Return value
string Content.
Overrides TokenCustomInterface::getFormattedContent
File
- src/
Entity/ TokenCustom.php, line 162
Class
- TokenCustom
- Defines the token_custom entity class.
Namespace
Drupal\token_custom\EntityCode
public function getFormattedContent() {
$content = $this->content->value;
$format = $this->content->format;
return check_markup($content, $format);
}