src/Charcoal/Admin/Widget/FormPropertyWidget.php
protected function resolveOutputType($type)
    {
        if ($this->propertyInputFactory()->isResolvable($type)) {
            $this->setInputType($type);
            return static::PROPERTY_CONTROL;
        } elseif ($this->propertyDisplayFactory()->isResolvable($type)) {
            $this->setDisplayType($type);
            return static::PROPERTY_DISPLAY;
        } else {
            throw new InvalidArgumentException(sprintf(
                'Invalid form property output type, received %s',
                is_object($type) ? get_class($type) : gettype($type)
            ));
        }
    }
protected function resolveOutputType($type)
    {
        if ($this->propertyInputFactory()->isResolvable($type)) {
            $this->setInputType($type);
            return static::PROPERTY_CONTROL;
        } elseif ($this->propertyDisplayFactory()->isResolvable($type)) {
            $this->setDisplayType($type);
            return static::PROPERTY_DISPLAY;
        } else {
            throw new InvalidArgumentException(sprintf(
                'Invalid form property output type, received %s',
                is_object($type) ? get_class($type) : gettype($type)
            ));
        }
    }
protected function resolveOutputType ( $ type ) { if ( $ this -> propertyInputFactory ( ) -> isResolvable ( $ type ) ) { $ this -> setInputType ( $ type ) ; return static :: PROPERTY_CONTROL ; } elseif ( $ this -> propertyDisplayFactory ( ) -> isResolvable ( $ type ) ) { $ this -> setDisplayType ( $ type ) ; return static :: PROPERTY_DISPLAY ; } else { throw new InvalidArgumentException ( sprintf ( 'Invalid form property output type, received %s' , is_object ( $ type ) ? get_class ( $ type ) : gettype ( $ type ) ) ) ; } }
Resolve the property output type.

Note: The "input_type" or "display_type" will be set
if the output type is a valid output property.

@param  string $type The input or display property type.
@throws InvalidArgumentException If the property output type is invalid.
@return string Returns either "input" or "display".
Resolve the property output type .