Field::getOption([$value])

Version 4

Get field select option

Return value

String

Arguments

$value
Option value
Default: Selected value

Full documentation

$this->get('page','tilaus',$id)->getField('status')->getOption(); // Selected value
$this->get('page','tilaus',$id)->getField('status')->getOption('Tuotanto');
---
Array (
    [buttoncolor] => blue
    [title] => Tuotanto
    [description] => Tuotantopäivä annettu
    [value] => Tuotanto
    [name] => Tuotanto
)