PreviewableFieldInterface

Type
Interface
Namespace
craft\base
Implemented by
craft\fields\BaseOptionsField, craft\fields\Checkboxes, craft\fields\Color, craft\fields\Date, craft\fields\Dropdown, craft\fields\Email, craft\fields\Lightswitch, craft\fields\MultiSelect, craft\fields\Number, craft\fields\PlainText, craft\fields\RadioButtons, craft\fields\Url
Since
3.0

PreviewableFieldInterface defines the common interface to be implemented by field classes that wish to be previewable on element indexes in the Control Panel.

View source

Public Methods

MethodDescription
getTableAttributeHtml()Returns the HTML that should be shown for this field in Table View.

getTableAttributeHtml()

Returns the HTML that should be shown for this field in Table View.

View source

Arguments

Returns

string – The HTML that should be shown for this field in Table View

Signature

public abstract string getTableAttributeHtml ( $value, craft\base\ElementInterface $element )