public function StyleBase::getVariantClass in GridStack 8.2
Returns the variant class.
File
- src/
Plugin/ gridstack/ stylizer/ StyleBase.php, line 231
Class
- StyleBase
- Provides the base styles.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function getVariantClass($variant) {
// Unless prefixed, Html::getClass removes number, 03|13 Twain -> 3-twain.
return Html::getClass('is-gs-variant-' . str_replace([
'_',
], '-', $variant));
}