You are here

public function TagElementInterface::getAttribute in Extensible BBCode 8.3

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

Retrieve a particular attribute of the element.

[tag NAME=VALUE]...[/tag]

Parameters

string $name: The name of the attribute, or NULL.

Return value

string|null The value of this attribute, or NULL if it isn't set.

2 methods override TagElementInterface::getAttribute()
PreparedTagElement::getAttribute in src/PreparedTagElement.php
Retrieve a particular attribute of the element.
TagElement::getAttribute in src/Parser/Tree/TagElement.php
Retrieve a particular attribute of the element.

File

src/Parser/Tree/TagElementInterface.php, line 39

Class

TagElementInterface
A tag occurrence as processed by tag plugins.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function getAttribute(string $name) : ?string;