Maslosoft Sprite API
Class Package
Sprite package
- Maslosoft\Sprite\Models\Package implements Maslosoft\Sprite\Interfaces\SpritePackageInterface
Direct known subclasses
Indirect known subclasses
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
public
string
|
$constantsClass
If set, it will override this class with same class name, but containing formatted constants with icon names. |
#
''
|
public
string
|
$constantsClassPath
Set this to create class if not yet exists |
#
''
|
public
callable
|
$constantsConverter
Define any valid PHP callback to customize transformation constant names. By default they are camelized, ie: document-folder Will become: DocumentFolder |
#
[Normalizer::class, 'camelize']
|
public
callable
|
$cssClassNameConverter
Define any valid PHP callback to customize transformation of CSS class names. By default they are decamelized, ie: Document-Folder Will become: document-folder |
#
[Normalizer::class, 'decamelize']
|
public
string
|
$iconPrefix
Icon prefix. It is used by CSS as selector. This can be usefull to create icon namespace for application module. Example icon CSS class name without prefix: icon-folder With prefix it will append this prefix after |
#
''
|
public
string[]
|
$paths
Absolute paths to scan for icons. It cat be paths to folder or to single icons: $paths = [ '/var/www/some/application/assets/', '/tmp/some-icon.png' ] |
#
[]
|