FOF30\Form\Field\GenericList::getStatic PHP Method

getStatic() public method

Get the rendering of this field type for static display, e.g. in a single item view (typically a "read" task).
Since: 2.0
public getStatic ( ) : string
return string The field HTML
    public function getStatic()
    {
        if (isset($this->element['legacy'])) {
            return $this->getInput();
        }
        $class = $this->class ? ' class="' . $this->class . '"' : '';
        return '<span id="' . $this->id . '" ' . $class . '>' . htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8') . '</span>';
    }