class Attributes

Class to help modify attributes.

Hierarchy

  • class \Drupal\bootstrap\Utility\ArrayObject implements \Countable, \Drupal\Core\Render\AttachmentsInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface, \IteratorAggregate, \ArrayAccess, \Serializable

Expanded class hierarchy of Attributes

Related topics

Namespace

Drupal\bootstrap\Utility

Members

Contains filters are case sensitive
Name Modifiers Type Description
ArrayObject::$array protected property The array.
ArrayObject::addAttachments public function
ArrayObject::addCacheableDependency public function
ArrayObject::addCacheContexts public function
ArrayObject::addCacheTags public function
ArrayObject::append public function Appends the value.
ArrayObject::asort public function Sort the entries by value.
ArrayObject::bubbleObject public function Merges an object's cacheable metadata into the variables array.
ArrayObject::bubbleRenderArray public function Merges a render array's cacheable metadata into the variables array.
ArrayObject::count public function Get the number of public properties in the ArrayObject.
ArrayObject::exchangeArray public function Exchange the array for another one.
ArrayObject::getArrayCopy public function Creates a copy of the ArrayObject.
ArrayObject::getAttachments public function
ArrayObject::getCacheContexts public function
ArrayObject::getCacheMaxAge public function
ArrayObject::getCacheTags public function
ArrayObject::getIterator public function Creates a new iterator from an ArrayObject instance.
ArrayObject::ksort public function Sort the entries by key.
ArrayObject::merge public function Merges multiple values into the array.
ArrayObject::mergeCacheMaxAge public function
ArrayObject::natcasesort public function Sort an array using a case insensitive "natural order" algorithm.
ArrayObject::natsort public function Sort entries using a "natural order" algorithm.
ArrayObject::offsetExists public function Returns whether the requested key exists.
ArrayObject::offsetGet public function Returns the value at the specified key.
ArrayObject::offsetSet public function Sets the value at the specified key to value.
ArrayObject::offsetUnset public function Unsets the value at the specified key.
ArrayObject::serialize public function Serialize an ArrayObject.
ArrayObject::setAttachments public function
ArrayObject::uasort public function Sort entries with a user-defined function and maintain key association.
ArrayObject::uksort public function Sort the entries by keys using a user-defined comparison function.
ArrayObject::unserialize public function Unserialize an ArrayObject.
ArrayObject::__get public function Returns the value at the specified key by reference.
ArrayObject::__isset public function Returns whether the requested key exists.
ArrayObject::__set public function Sets the value at the specified key to value.
ArrayObject::__unset public function Unsets the value at the specified key.
Attributes::addClass public function Add class(es) to the array.
Attributes::getAttribute public function Retrieve a specific attribute from the array.
Attributes::getClasses public function Retrieves classes from the array.
Attributes::hasAttribute public function Indicates whether a specific attribute is set.
Attributes::hasClass public function Indicates whether a class is present in the array.
Attributes::removeAttribute public function Removes an attribute from the array.
Attributes::removeClass public function Removes a class from the attributes array.
Attributes::replaceClass public function Replaces a class in the attributes array.
Attributes::setAttribute public function Sets an attribute on the array.
Attributes::setAttributes public function Sets multiple attributes on the array.
Attributes::__construct public function Array object constructor. Overrides ArrayObject::__construct