public function Attributes::getClasses in Express 8
Retrieves classes from the array.
Return value
array The classes array, passed by reference.
See also
\Drupal\bootstrap\Utility\ArrayObject::offsetGet()
4 calls to Attributes::getClasses()
- Attributes::addClass in themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php - Add class(es) to the array.
- Attributes::hasClass in themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php - Indicates whether a class is present in the array.
- Attributes::removeClass in themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php - Removes a class from the attributes array.
- Attributes::replaceClass in themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php - Replaces a class in the attributes array.
File
- themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php, line 61 - Contains \Drupal\bootstrap\Utility\Attributes.
Class
- Attributes
- Class to help modify attributes.
Namespace
Drupal\bootstrap\UtilityCode
public function &getClasses() {
$classes =& $this
->offsetGet('class', []);
$classes = array_unique($classes);
return $classes;
}