StevieMayhew\SilverStripeSVG\SVGTemplate
Class SVGTemplate
Synopsis
class SVGTemplate
extends ViewableData
{
- // members
- private static string $base_path = 'mysite/svg/';
- private static string $extension = 'svg';
- private static array $default_extra_classes = ;
- private $path;
- private $fill;
- private $stroke;
- private $width;
- private $height;
- private $custom_base_path;
- private $extraClasses;
- private $subfolders;
- // methods
- public void __construct()
- public $this fill()
- public $this stroke()
- public $this width()
- public $this height()
- public $this size()
- public $this customBasePath()
- public $this extraClass()
- public $this addSubfolder()
- private string process()
- public string forTemplate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
private
- $base_path
—
string
The base path to your SVG location - $custom_base_path — string
- $default_extra_classes — array
- $extension — string
- $extraClasses — array
- $fill — string
- $height — string
- $path — string
- $stroke — string
- $subfolders — array
- $width — string