MultiOptionsFieldData

Type
Class
Namespace
craft\fields\data
Inherits
craft\fields\data\MultiOptionsFieldData » ArrayObject
Since
3.0

Multi-select option field data class.

View source

Public Methods

MethodDescription
contains()
getOptions()Returns the options.
setOptions()Sets the options.

contains()

View source

Arguments

  • $value (mixed)

Returns

boolean

Signature

public boolean contains ( $value )

getOptions()

Returns the options.

View source

Returns

craft\fields\data\OptionData[]

Signature

public craft\fields\data\OptionData[] getOptions ( )

setOptions()

Sets the options.

View source

Arguments

Signature

public void setOptions ( array $options )