You are here

public function TagElement::setSource in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Parser/Tree/TagElement.php \Drupal\xbbcode\Parser\Tree\TagElement::setSource()

Set the content source of the tag.

Parameters

string $source: The text between [tag] and [/tag].

Overrides TagElementInterface::setSource

File

src/Parser/Tree/TagElement.php, line 191

Class

TagElement
A BBCode tag element.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function setSource(string $source) : void {
  $this->source = $source;
}