public function StyleBase::inlineStyle in GridStack 8.2
Modifies inline style to not nullify others.
1 call to StyleBase::inlineStyle()
- Builder::inlineAttributes in src/
Plugin/ gridstack/ stylizer/ Builder.php - Modifies inline styles for admin previews, not front-end.
File
- src/
Plugin/ gridstack/ stylizer/ StyleBase.php, line 111
Class
- StyleBase
- Provides the base styles.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function inlineStyle(array &$attributes, $css) {
$attributes['style'] = (isset($attributes['style']) ? $attributes['style'] : '') . $css;
}