class DrupalAttributes
Class for managing multiple types of attributes commonly found in Drupal.
Hierarchy
- class \Drupal\bootstrap\Utility\ArrayObject implements \IteratorAggregate, \ArrayAccess, \Serializable, \Countable, \Drupal\Core\Render\AttachmentsInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- class \Drupal\bootstrap\Utility\DrupalAttributes
Expanded class hierarchy of DrupalAttributes
See Also
Related topics
Namespace
Drupal\bootstrap\UtilityMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ArrayObject:: |
protected | property | The array. |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | Appends the value. |
ArrayObject:: |
public | function | Sort the entries by value. |
ArrayObject:: |
public | function | Merges an object's cacheable metadata into the variables array. |
ArrayObject:: |
public | function | Merges a render array's cacheable metadata into the variables array. |
ArrayObject:: |
public | function | Get the number of public properties in the ArrayObject. |
ArrayObject:: |
public | function | Exchange the array for another one. |
ArrayObject:: |
public | function | Creates a copy of the ArrayObject. |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | Creates a new iterator from an ArrayObject instance. |
ArrayObject:: |
public | function | Sort the entries by key. |
ArrayObject:: |
public | function | Merges multiple values into the array. |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | Sort an array using a case insensitive "natural order" algorithm. |
ArrayObject:: |
public | function | Sort entries using a "natural order" algorithm. |
ArrayObject:: |
public | function | Returns whether the requested key exists. |
ArrayObject:: |
public | function | Returns the value at the specified key. |
ArrayObject:: |
public | function | Sets the value at the specified key to value. |
ArrayObject:: |
public | function | Unsets the value at the specified key. |
ArrayObject:: |
public | function | Serialize an ArrayObject. |
ArrayObject:: |
public | function | |
ArrayObject:: |
public | function | Sort entries with a user-defined function and maintain key association. |
ArrayObject:: |
public | function | Sort the entries by keys using a user-defined comparison function. |
ArrayObject:: |
public | function | Unserialize an ArrayObject. |
ArrayObject:: |
public | function | Array object constructor. |
ArrayObject:: |
public | function | Returns the value at the specified key by reference. |
ArrayObject:: |
public | function | Returns whether the requested key exists. |
ArrayObject:: |
public | function | Sets the value at the specified key to value. |
ArrayObject:: |
public | function | Unsets the value at the specified key. |
DrupalAttributes:: |
protected | property | A prefix to use for retrieving attribute keys from the array. |
DrupalAttributes:: |
protected | property | Stored attribute instances. |
DrupalAttributes:: |
public | function | Add class(es) to an attributes object. |
DrupalAttributes:: |
constant | Defines the "attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "body_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "content_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "description_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "footer_attributes" storage type constant. | |
DrupalAttributes:: |
public | function | Retrieve a specific attribute from an attributes object. |
DrupalAttributes:: |
public | function | Retrieves a specific attributes object. |
DrupalAttributes:: |
public | function | Retrieves classes from an attributes object. |
DrupalAttributes:: |
public | function | Indicates whether an attributes object has a specific attribute set. |
DrupalAttributes:: |
public | function | Indicates whether an attributes object has a specific class. |
DrupalAttributes:: |
constant | Defines the "header_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "heading_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "input_group_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "label_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "navbar_attributes" storage type constant. | |
DrupalAttributes:: |
public | function | Removes an attribute from an attributes object. |
DrupalAttributes:: |
public | function | Removes a class from an attributes object. |
DrupalAttributes:: |
public | function | Replaces a class in an attributes object. |
DrupalAttributes:: |
public | function | Sets an attribute on an attributes object. |
DrupalAttributes:: |
public | function | Sets multiple attributes on an attributes object. |
DrupalAttributes:: |
constant | Defines the "split_button_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "title_attributes" storage type constant. | |
DrupalAttributes:: |
constant | Defines the "wrapper_attributes" storage type constant. |