class TestAttribute in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TestAttribute
Hierarchy
- class \Drupal\Core\Template\Attribute implements \Drupal\Core\Template\ArrayAccess, \Drupal\Core\Template\IteratorAggregate, MarkupInterface
- class \Drupal\Tests\Core\Template\TestAttribute
Expanded class hierarchy of TestAttribute
File
- core/
tests/ Drupal/ Tests/ Core/ Template/ TwigSandboxTest.php, line 159 - Contains \Drupal\Tests\Core\Template\TwigSandboxTest.
Namespace
Drupal\Tests\Core\TemplateView source
class TestAttribute extends Attribute {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Attribute:: |
protected | property | Stores the attribute data. | |
Attribute:: |
public | function | Adds classes or merges them on to array of existing CSS classes. | |
Attribute:: |
protected | function | Creates the different types of attribute values. | |
Attribute:: |
public | function | Gets the class attribute value if set. | |
Attribute:: |
public | function | ||
Attribute:: |
public | function | Checks if the storage has an attribute with the given name. | |
Attribute:: |
public | function | Checks if the class array has the given CSS class. | |
Attribute:: |
public | function | Returns a representation of the object for use in JSON serialization. | |
Attribute:: |
public | function | Merges an Attribute object into the current storage. | |
Attribute:: |
public | function | ||
Attribute:: |
public | function | ||
Attribute:: |
public | function | ||
Attribute:: |
public | function | ||
Attribute:: |
public | function | Removes an attribute from an Attribute object. | |
Attribute:: |
public | function | Removes argument values from array of existing CSS classes. | |
Attribute:: |
public | function | Sets values for an attribute key. | |
Attribute:: |
public | function | Returns the whole array. | |
Attribute:: |
public | function | Returns all storage elements as an array. | |
Attribute:: |
public | function | Implements the magic __clone() method. | |
Attribute:: |
public | function | Constructs a \Drupal\Core\Template\Attribute object. | |
Attribute:: |
public | function |
Implements the magic __toString() method. Overrides MarkupInterface:: |