public function Builder::inlineAttributes in GridStack 8.2
Modifies inline styles for admin previews, not front-end.
File
- src/
Plugin/ gridstack/ stylizer/ Builder.php, line 102
Class
- Builder
- Provides Layout Builder integration for editor previews.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function inlineAttributes(array &$attributes, array $data) {
$rules = $data['rules'];
$selector = $data['selector'];
if (!empty($rules[$selector])) {
$this
->inlineStyle($attributes, $rules[$selector]);
}
}