Neos\FluidAdaptor\ViewHelpers\Form\SelectViewHelper::renderOptionTag PHP Метод

renderOptionTag() защищенный Метод

Render one option tag
protected renderOptionTag ( string $value, string $label ) : string
$value string value attribute of the option tag (will be escaped)
$label string content of the option tag (will be escaped)
Результат string the rendered option tag
    protected function renderOptionTag($value, $label)
    {
        $output = '<option value="' . htmlspecialchars($value) . '"';
        if ($this->isSelected($value)) {
            $output .= ' selected="selected"';
        }
        $output .= '>' . htmlspecialchars($label) . '</option>';
        return $output;
    }