Gets the class attribute value if set.
This method is implemented to take precedence over hasClass() for Twig 2.0.
\Drupal\Core\Template\AttributeValueBase The class attribute value if set.
twig_get_attribute()
public function getClass() { return $this->offsetGet('class'); }