public function CSSSnippet::__construct in Background Image Field 8
Constructs an HtmlEscapedText object.
Parameters
string $string: The string to escape. This value will be cast to a string.
File
- src/
Component/ Render/ CSSSnippet.php, line 25
Class
- CSSSnippet
- This class will clean up the css string we have created in the formatter.
Namespace
Drupal\bg_img_field\Component\RenderCode
public function __construct($string) {
$this->string = (string) $string;
}