FOF30\Form\Field\Published::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()
    {
        $class = $this->class ? ' class="' . $this->class . '"' : '';
        return '<span id="' . $this->id . '" ' . $class . '>' . htmlspecialchars(GenericList::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8') . '</span>';
    }