You are here

public function DrupalAttributes::getClasses in Express 8

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.

See also

\Drupal\bootstrap\Utility\Attributes::getClasses()

File

themes/contrib/bootstrap/src/Utility/DrupalAttributes.php, line 203
Contains \Drupal\bootstrap\Utility\DrupalAttributes.

Class

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

Namespace

Drupal\bootstrap\Utility

Code

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