Source of file Type.php
Size: 1,153 Bytes - Last Modified: 2021-12-23T10:32:46+00:00
/var/www/docs.ssmods.com/process/src/src/Type/Type.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php namespace SilverStripe\Link\Type; use SilverStripe\Forms\FieldList; use SilverStripe\Link\JsonData; /** * Define a link type that can be edited in Link Field */ interface Type { /** * Call once on the main request. Can be used to require front end assets. */ public function defineLinkTypeRequirements(); /** * Each Type of link must specify a frontend handler that will determine what happens when it gets selected. */ public function LinkTypeHandlerName(): string; /** * What should be the link description be given this data. */ public function generateLinkDescription(array $data): string; /** * Human readbale title of this link type */ public function LinkTypeTile(): string; /** * Build a list of fields suitable to edit this link type * @param array $data * @return FieldList */ public function scaffoldLinkFields(array $data): FieldList; /** * Create a new instance of this Link from the provided Data * @param array $data * @return JsonData */ public function loadLinkData(array $data): JsonData; } |