eZ\Publish\Core\FieldType\RichText\Type::fromHash PHP Метод

fromHash() публичный Метод

$hash accepts the following keys: - xml (XML string which complies internal format).
public fromHash ( mixed $hash ) : Value
$hash mixed
Результат Value $value
    public function fromHash($hash)
    {
        if (!isset($hash['xml'])) {
            throw new RuntimeException("'xml' index is missing in hash.");
        }
        return $this->acceptValue($hash['xml']);
    }