Skip to content

Actionable ​

Type
Interface
Namespace
craft\base
Implemented by
craft\base\ElementInterface, craft\base\Field, craft\fields\Addresses, craft\fields\Assets, craft\fields\BaseOptionsField, craft\fields\BaseRelationField, craft\fields\Categories, craft\fields\Checkboxes, craft\fields\Color, craft\fields\Country, craft\fields\Date, craft\fields\Dropdown, craft\fields\Email, craft\fields\Entries, craft\fields\Icon, craft\fields\Lightswitch, craft\fields\Link, craft\fields\Matrix, craft\fields\MissingField, craft\fields\Money, craft\fields\MultiSelect, craft\fields\Number, craft\fields\PlainText, craft\fields\RadioButtons, craft\fields\Range, craft\fields\Table, craft\fields\Tags, craft\fields\Time, craft\fields\Users, craft\models\EntryType
Since
5.0.0

Actionable defines the common interface to be implemented by components that can have action menus within the control panel.

View source

Public Methods ​

MethodDescription
getActionMenuItems()Returns action menu items for the component.

getActionMenuItems() ​

Returns action menu items for the component.

See craft\helpers\Cp::disclosureMenu() for documentation on supported item properties.

By default, all non-destructive items will be included in chips and cards. Individual items can explicitly opt into/out of being shown within chips and cards by including a showInChips key.

php
'showInChips' => false,

See also craft\helpers\Cp::disclosureMenu()View source

Returns ​

array