You are here

public function TagElement::getOption in Extensible BBCode 8.3

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

Retrieve the option-type attribute of the element.

[tag=OPTION]...[/tag]

Return value

string The value of the option.

Overrides TagElementInterface::getOption

File

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

Class

TagElement
A BBCode tag element.

Namespace

Drupal\xbbcode\Parser\Tree

Code

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