Метод | Описание | |
---|---|---|
getName ( ) : string | ||
getVendor ( ) : string |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | Bolt\Filesystem\Handler\DirectoryInterface |
abstract protected getContainer ( ) : Pimple | ||
Результат | Pimple |
protected getDefaultConfig ( ) : array | ||
Результат | array |
return [ new ColourPickField(), ];
protected registerFields ( ) : Bolt\Storage\Field\FieldInterface[] | ||
Результат | Bolt\Storage\Field\FieldInterface[] |