eZ\Publish\Core\FieldType\BinaryBase\Type::createValueFromInput PHP Метод

createValueFromInput() защищенный Метод

Inspects given $inputValue and potentially converts it into a dedicated value object.
protected createValueFromInput ( string | array | eZ\Publish\Core\FieldType\BinaryBase\Value $inputValue ) : eZ\Publish\Core\FieldType\BinaryBase\Value
$inputValue string | array | eZ\Publish\Core\FieldType\BinaryBase\Value
Результат eZ\Publish\Core\FieldType\BinaryBase\Value The potentially converted and structurally plausible value.
    protected function createValueFromInput($inputValue)
    {
        // construction only from path
        if (is_string($inputValue)) {
            $inputValue = array('inputUri' => $inputValue);
        }
        // default construction from array
        if (is_array($inputValue)) {
            $inputValue = $this->createValue($inputValue);
        }
        $this->completeValue($inputValue);
        return $inputValue;
    }