Jarves\Configuration\FieldType::getOption PHP Method

getOption() public method

public getOption ( string $id ) : Field
$id string
return Field
    public function getOption($id)
    {
        if ($this->options) {
            foreach ($this->options as $option) {
                if (strtolower($option->getId()) == strtolower($id)) {
                    return $option;
                }
            }
        }
    }