public function AttributeArray::__toString

Implements the magic __toString() method.

Overrides AttributeValueBase::__toString

File

drupal/core/lib/Drupal/Core/Template/AttributeArray.php, line 67
Definition of Drupal\Core\Template\AttributeArray.

Class

AttributeArray
A class that defines a type of Attribute that can be added to as an array.

Namespace

Drupal\Core\Template

Code

public function __toString() {
  $this->printed = TRUE;
  return implode(' ', array_map('check_plain', $this->value));
}