gorriecoe\YMLPresetLinks\YMLPresetLinksExtension
Adds link types preset in your config.yml.
Synopsis
class YMLPresetLinksExtension
extends DataExtension
{
- // methods
- public Array getPresetTypes()
- public ArrayList getPresetTypesArrayList()
- public Boolean isPresetType()
- public Mixed getPresetTypeValue()
- public void onBeforeWrite()
- public void updateTypes()
- public void updateLinkURL()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
public
- getPresetTypeValue() — Returns the value of the given type and field.
- getPresetTypes() — Returns a list of preset types defined in your config.yml
- getPresetTypesArrayList() — Returns a list of preset types defined in your config.yml
- isPresetType() — Checks if the given type is a preset type.
- onBeforeWrite() — Event handler called before writing to the database.
- updateLinkURL() — Update LinkURL
- updateTypes() — Update Types