public function Attributes::removeClass in Express 8
Removes a class from the attributes array.
Parameters
string|array $class: An individual class or an array of classes to remove.
See also
\Drupal\bootstrap\Utility\Attributes::getClasses()
File
- themes/contrib/ bootstrap/ src/ Utility/ Attributes.php, line 121 
- Contains \Drupal\bootstrap\Utility\Attributes.
Class
- Attributes
- Class to help modify attributes.
Namespace
Drupal\bootstrap\UtilityCode
public function removeClass($class) {
  $classes =& $this
    ->getClasses();
  $classes = array_values(array_diff($classes, (array) $class));
}