Méthode | Description | |
---|---|---|
getName ( ) : string | ||
getVendor ( ) : string |
Méthode | Description | |
---|---|---|
extendConfigService ( ) | Call this in register method. | |
getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface | ||
getConfig ( ) : array | Returns the config for the extension. | |
getContainer ( ) : Pimple | ||
getDefaultConfig ( ) : array | Override this to provide a default configuration, which will be used in the absence of a config file. | |
registerFields ( ) : Bolt\Storage\Field\FieldInterface[] | Register a list of Bolt fields. |
Méthode | Description | |
---|---|---|
addConfig ( Bolt\Filesystem\Handler\YamlFile $file ) | Merge in a yaml file to the config. | |
copyDistFile ( Bolt\Filesystem\Handler\YamlFile $file ) | Copy config.yml.dist to config/extensions. |
protected extendConfigService ( ) |
abstract protected getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface | ||
Résultat | Bolt\Filesystem\Handler\DirectoryInterface |
abstract protected getContainer ( ) : Pimple | ||
Résultat | Pimple |
protected getDefaultConfig ( ) : array | ||
Résultat | array |
return [ new ColourPickField(), ];
protected registerFields ( ) : Bolt\Storage\Field\FieldInterface[] | ||
Résultat | Bolt\Storage\Field\FieldInterface[] |