function public function DrupalAttributes::getClasses

8.x-3.x DrupalAttributes.php public &DrupalAttributes::getClasses($type = DrupalAttributes::ATTRIBUTES)

Retrieves classes from an attributes object.

This is a wrapper method to retrieve the correct attributes storage object and then retrieve the set classes from it.

Parameters

string $type: (optional) The type of attributes to use for this method.

Return value

array The classes array, passed by reference.

Class

DrupalAttributes
Class for managing multiple types of attributes commonly found in Drupal.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/DrupalAttributes.php (line 199)

public function &getClasses($type = DrupalAttributes::ATTRIBUTES) {
  return $this->getAttributes($type)->getClasses();
}