src/Charcoal/Property/AbstractProperty.php
final public function viewOptions($ident = null)
    {
        // No options defined
        if (!$this->viewOptions) {
            return [];
        }

        // No ident defined
        if (!$ident) {
            return $this->viewOptions;
        }

        // Invalid ident
        if (!isset($this->viewOptions[$ident])) {
            return [];
        }

        // Success!
        return $this->viewOptions[$ident];
    }
final public function viewOptions($ident = null)
    {
        // No options defined
        if (!$this->viewOptions) {
            return [];
        }

        // No ident defined
        if (!$ident) {
            return $this->viewOptions;
        }

        // Invalid ident
        if (!isset($this->viewOptions[$ident])) {
            return [];
        }

        // Success!
        return $this->viewOptions[$ident];
    }
final public function viewOptions ( $ ident = null ) { // No options defined if ( ! $ this -> viewOptions ) { return [ ] ; } // No ident defined if ( ! $ ident ) { return $ this -> viewOptions ; } // Invalid ident if ( ! isset ( $ this -> viewOptions [ $ ident ] ) ) { return [ ] ; } // Success! return $ this -> viewOptions [ $ ident ] ; }
View options.
@param string $ident The display ident (ex: charcoal/admin/property/display/text).
@return array Should ALWAYS be an array.
View options .