gorriecoe\LinkField\Forms\HasOneLinkField
FormField to add a {@link \gorriecoe\Link\Models\Link} to a has_one relationship.
This field allows configuration to define which types of link are available, which is passed to it
from the .
Synopsis
class HasOneLinkField
extends HasOneButtonField
{
- // methods
- public void __construct()
- public $this setLinkConfig()
- public array getLinkConfig()
- public void validate()
- public void FieldHolder()
Hierarchy
Extends
- SilverShop\HasOneField\HasOneButtonField
Methods
public
- __construct()
- FieldHolder() — Display GridField with messages.
- getLinkConfig() — Get the configuration for this Link relationship.
- setLinkConfig() — Set the configuration for this Link relationship.
- validate() — Check that there is a link.