src/Charcoal/Admin/Property/Display/ChoiceDisplay.php
public function displayVal()
    {
        $prop = $this->p();
        $val  = $this->propertyVal();

        if ($val !== null) {
            return $prop->displayVal($val);
        }

        if ($prop->allowNull()) {
            $nil = $this->emptyChoice();
            return (string)$nil['label'];
        }

        return '';
    }
public function displayVal()
    {
        $prop = $this->p();
        $val  = $this->propertyVal();

        if ($val !== null) {
            return $prop->displayVal($val);
        }

        if ($prop->allowNull()) {
            $nil = $this->emptyChoice();
            return (string)$nil['label'];
        }

        return '';
    }
public function displayVal ( ) { $ prop = $ this -> p ( ) ; $ val = $ this -> propertyVal ( ) ; if ( $ val !== null ) { return $ prop -> displayVal ( $ val ) ; } if ( $ prop -> allowNull ( ) ) { $ nil = $ this -> emptyChoice ( ) ; return ( string ) $ nil [ 'label' ] ; } return '' ; }
Retrieve display value.

@return string
Retrieve display value .