You are here

public static function Blazy::inlineStyle in Blazy 7

Same name and namespace in other branches
  1. 8.2 src/Blazy.php \Drupal\blazy\Blazy::inlineStyle()

Modifies inline style to not nullify others.

1 call to Blazy::inlineStyle()
Blazy::aspectRatioAttributes in src/Blazy.php
Modifies container attributes with aspect ratio.

File

src/Blazy.php, line 284

Class

Blazy
Implements BlazyInterface.

Namespace

Drupal\blazy

Code

public static function inlineStyle(array &$attributes, $css) {
  $attributes['style'] = (isset($attributes['style']) ? $attributes['style'] : '') . $css;
}