eZ\Publish\Core\FieldType\Page\HashConverter::convertZoneFromHash PHP Method

convertZoneFromHash() protected method

Converts the given $hash to a Zone node.
protected convertZoneFromHash ( mixed $hash ) : Zone
$hash mixed
return eZ\Publish\Core\FieldType\Page\Parts\Zone
    protected function convertZoneFromHash($hash)
    {
        if (isset($hash['blocks'])) {
            $blocks = array();
            foreach ($hash['blocks'] as $block) {
                $blocks[] = $this->convertBlockFromHash($block);
            }
            $hash['blocks'] = $blocks;
        }
        return new Zone($hash);
    }