You are here

public function PreparedTagElement::setAttributes in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/PreparedTagElement.php \Drupal\xbbcode\PreparedTagElement::setAttributes()

Set all attribute values.

Parameters

string[] $attributes: The tag attributes, indexed by name.

Overrides TagElementInterface::setAttributes

File

src/PreparedTagElement.php, line 87

Class

PreparedTagElement
Adapter for the tag element that marks markup as safe.

Namespace

Drupal\xbbcode

Code

public function setAttributes(array $attributes) : void {
  $this->tag
    ->setAttributes($attributes);
}