public function TagElementInterface::getAttribute in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 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 67
Class
- TagElementInterface
- A tag occurrence as processed by tag plugins.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function getAttribute(string $name) : ?string;