SilverStripe\Link\Type\Type
Define a link type that can be edited in Link Field
Synopsis
interface Type
{
- // methods
- public void defineLinkTypeRequirements()
- public void LinkTypeHandlerName()
- public void generateLinkDescription()
- public void LinkTypeTile()
- public FieldList scaffoldLinkFields()
- public JsonData loadLinkData()
Methods
public
- LinkTypeHandlerName() — Each Type of link must specify a frontend handler that will determine what happens when it gets selected.
- LinkTypeTile() — Human readbale title of this link type
- defineLinkTypeRequirements() — Call once on the main request. Can be used to require front end assets.
- generateLinkDescription() — What should be the link description be given this data.
- loadLinkData() — Create a new instance of this Link from the provided Data
- scaffoldLinkFields() — Build a list of fields suitable to edit this link type