Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
Attribute::addClass function core/lib/Drupal/Core/Template/Attribute.php Adds classes or merges them on to array of existing CSS classes.
Attribute::createAttributeValue function core/lib/Drupal/Core/Template/Attribute.php Creates the different types of attribute values.
Attribute::getClass function core/lib/Drupal/Core/Template/Attribute.php Gets the class attribute value if set.
Attribute::getIterator function core/lib/Drupal/Core/Template/Attribute.php Retrieves the iterator for the object.
Attribute::hasAttribute function core/lib/Drupal/Core/Template/Attribute.php Checks if the storage has an attribute with the given name.
Attribute::hasClass function core/lib/Drupal/Core/Template/Attribute.php Checks if the class array has the given CSS class.
Attribute::jsonSerialize function core/lib/Drupal/Core/Template/Attribute.php Returns a representation of the object for use in JSON serialization.
Attribute::merge function core/lib/Drupal/Core/Template/Attribute.php Merges an Attribute object into the current storage.
Attribute::offsetExists function core/lib/Drupal/Core/Template/Attribute.php
Attribute::offsetGet function core/lib/Drupal/Core/Template/Attribute.php
Attribute::offsetSet function core/lib/Drupal/Core/Template/Attribute.php
Attribute::offsetUnset function core/lib/Drupal/Core/Template/Attribute.php
Attribute::removeAttribute function core/lib/Drupal/Core/Template/Attribute.php Removes an attribute from an Attribute object.
Attribute::removeClass function core/lib/Drupal/Core/Template/Attribute.php Removes argument values from array of existing CSS classes.
Attribute::setAttribute function core/lib/Drupal/Core/Template/Attribute.php Sets values for an attribute key.
Attribute::storage function core/lib/Drupal/Core/Template/Attribute.php Returns the whole array.
Attribute::toArray function core/lib/Drupal/Core/Template/Attribute.php Returns all storage elements as an array.
Attribute::__clone function core/lib/Drupal/Core/Template/Attribute.php Implements the magic __clone() method.
Attribute::__construct function core/lib/Drupal/Core/Template/Attribute.php Constructs a \Drupal\Core\Template\Attribute object.
Attribute::__toString function core/lib/Drupal/Core/Template/Attribute.php Implements the magic __toString() method.
AttributeAllowTestClass class core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Test class for TwigAllowed attribute.
AttributeAllowTestClass::allowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php #[TwigAllowed]
AttributeAllowTestClass::notAllowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php
AttributeArray class core/lib/Drupal/Core/Template/AttributeArray.php A class that defines a type of Attribute that can be added to as an array.
AttributeArray.php file core/lib/Drupal/Core/Template/AttributeArray.php
AttributeArray::exchangeArray function core/lib/Drupal/Core/Template/AttributeArray.php Exchange the array for another one.
AttributeArray::getIterator function core/lib/Drupal/Core/Template/AttributeArray.php Retrieves the iterator for the object.
AttributeArray::offsetExists function core/lib/Drupal/Core/Template/AttributeArray.php
AttributeArray::offsetGet function core/lib/Drupal/Core/Template/AttributeArray.php
AttributeArray::offsetSet function core/lib/Drupal/Core/Template/AttributeArray.php
AttributeArray::offsetUnset function core/lib/Drupal/Core/Template/AttributeArray.php
AttributeArray::RENDER_EMPTY_ATTRIBUTE constant core/lib/Drupal/Core/Template/AttributeArray.php Ensures empty array as a result of array_filter will not print '$name=""'.
AttributeArray::__toString function core/lib/Drupal/Core/Template/AttributeArray.php Implements the magic __toString() method.
AttributeBase class core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Provides a base class for classed attributes.
AttributeBase.php file core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php
AttributeBase::$class property core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php The class used for this attribute class.
AttributeBase::$dependencies property core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php The dependencies for the attribute class.
AttributeBase::$provider property core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php The provider of the attribute class.
AttributeBase::get function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Gets the value of an attribute.
AttributeBase::getClass function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Gets the class of the attribute class.
AttributeBase::getDependencies function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Gets the dependencies for this attribute class.
AttributeBase::getId function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Gets the unique ID for this attribute class.
AttributeBase::getProvider function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Gets the name of the provider of the attribute class.
AttributeBase::setClass function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Sets the class of the attributed class.
AttributeBase::setDependencies function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Sets the dependencies for this attribute class.
AttributeBase::setProvider function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Sets the name of the provider of the attribute class.
AttributeBase::__construct function core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php
AttributeBaseStub class core/tests/Drupal/Tests/Component/Plugin/Attribute/AttributeBaseTest.php
AttributeBaseTest class core/tests/Drupal/Tests/Component/Plugin/Attribute/AttributeBaseTest.php Tests Drupal\Component\Plugin\Attribute\AttributeBase.
AttributeBaseTest.php file core/tests/Drupal/Tests/Component/Plugin/Attribute/AttributeBaseTest.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.