CSSSnippet.php in Background Image Field 8
File
src/Component/Render/CSSSnippet.php
View source
<?php
namespace Drupal\bg_img_field\Component\Render;
use Drupal\Component\Render\MarkupInterface;
class CSSSnippet implements MarkupInterface {
protected $string;
public function __construct($string) {
$this->string = (string) $string;
}
public function __toString() {
return $this->string;
}
public function jsonSerialize() {
return $this
->__toString();
}
}
Classes
Name |
Description |
CSSSnippet |
This class will clean up the css string we have created in the formatter. |