public function hashToFieldValue($fieldValueArray, array $context = array())
    {
        $layout = $fieldValueArray['layout'];

        $hashConverter = new HashConverter();
        $pageType = new PageType($this->pageService, $hashConverter);

        /** @var PageValue $pageValue */
        $pageValue = $pageType->getEmptyValue();

        $pageValue->page = new Page(array(
            'zones' =>array(),
            'zonesById' => array(),
            'layout' => $layout
        ));

        return $pageValue;
    }
public function hashToFieldValue($fieldValueArray, array $context = array())
    {
        $layout = $fieldValueArray['layout'];

        $hashConverter = new HashConverter();
        $pageType = new PageType($this->pageService, $hashConverter);

        /** @var PageValue $pageValue */
        $pageValue = $pageType->getEmptyValue();

        $pageValue->page = new Page(array(
            'zones' =>array(),
            'zonesById' => array(),
            'layout' => $layout
        ));

        return $pageValue;
    }
public function hashToFieldValue ( $ fieldValueArray , array $ context = array ( ) ) { $ layout = $ fieldValueArray [ 'layout' ] ; $ hashConverter = new HashConverter ( ) ; $ pageType = new PageType ( $ this -> pageService , $ hashConverter ) ; /** @var PageValue $pageValue */ $ pageValue = $ pageType -> getEmptyValue ( ) ; $ pageValue -> page = new Page ( array ( 'zones' => array ( ) , 'zonesById' => array ( ) , 'layout' => $ layout ) ) ; return $ pageValue ; }
Creates a value object to use as the field value when setting an ez page field type.

@param array $fieldValueArray The definition of teh field value, structured in the yml file
@param array $context The context for execution of the current migrations. Contains f.e. the path to the migration
@return PageValue

@todo resolve refs more
Creates a value object to use as the field value when setting an ez page field type .