You are here

public function Tag::getTemplateCode in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Entity/Tag.php \Drupal\xbbcode\Entity\Tag::getTemplateCode()

An inline template.

Return value

string The Twig template code.

Overrides TagInterface::getTemplateCode

File

src/Entity/Tag.php, line 140

Class

Tag
Represents a custom XBBCode tag that can be altered by administrators.

Namespace

Drupal\xbbcode\Entity

Code

public function getTemplateCode() : string {
  return $this->template_code ?? '';
}