private function initLayoutUpdates(ContextInterface $context)
    {
        $loadedLayoutUpdates = $this->loadLayoutUpdates($context);
        foreach ($loadedLayoutUpdates as $id => $layoutUpdates) {
            if (!is_string($id)) {
                throw new Exception\UnexpectedTypeException(
                    $id,
                    'string',
                    'layout item id'
                );
            }
            if (!is_array($layoutUpdates)) {
                throw new Exception\UnexpectedTypeException(
                    $layoutUpdates,
                    'array',
                    sprintf('layout updates for item "%s"', $id)
                );
            }
            foreach ($layoutUpdates as $layoutUpdate) {
                if (!$layoutUpdate instanceof LayoutUpdateInterface) {
                    throw new Exception\UnexpectedTypeException(
                        $layoutUpdate,
                        'Oro\Component\Layout\LayoutUpdateInterface'
                    );
                }
            }
        }
        $this->layoutUpdates = $loadedLayoutUpdates;
    }
private function initLayoutUpdates(ContextInterface $context)
    {
        $loadedLayoutUpdates = $this->loadLayoutUpdates($context);
        foreach ($loadedLayoutUpdates as $id => $layoutUpdates) {
            if (!is_string($id)) {
                throw new Exception\UnexpectedTypeException(
                    $id,
                    'string',
                    'layout item id'
                );
            }
            if (!is_array($layoutUpdates)) {
                throw new Exception\UnexpectedTypeException(
                    $layoutUpdates,
                    'array',
                    sprintf('layout updates for item "%s"', $id)
                );
            }
            foreach ($layoutUpdates as $layoutUpdate) {
                if (!$layoutUpdate instanceof LayoutUpdateInterface) {
                    throw new Exception\UnexpectedTypeException(
                        $layoutUpdate,
                        'Oro\Component\Layout\LayoutUpdateInterface'
                    );
                }
            }
        }
        $this->layoutUpdates = $loadedLayoutUpdates;
    }
private function initLayoutUpdates ( ContextInterface $ context ) { $ loadedLayoutUpdates = $ this -> loadLayoutUpdates ( $ context ) ; foreach ( $ loadedLayoutUpdates as $ id => $ layoutUpdates ) { if ( ! is_string ( $ id ) ) { throw new Exception \ UnexpectedTypeException ( $ id , 'string' , 'layout item id' ) ; } if ( ! is_array ( $ layoutUpdates ) ) { throw new Exception \ UnexpectedTypeException ( $ layoutUpdates , 'array' , sprintf ( 'layout updates for item "%s"' , $ id ) ) ; } foreach ( $ layoutUpdates as $ layoutUpdate ) { if ( ! $ layoutUpdate instanceof LayoutUpdateInterface ) { throw new Exception \ UnexpectedTypeException ( $ layoutUpdate , 'Oro\Component\Layout\LayoutUpdateInterface' ) ; } } } $ this -> layoutUpdates = $ loadedLayoutUpdates ; }
Initializes layout updates.

@param ContextInterface $context

@throws Exception\UnexpectedTypeException if any registered layout update is not
an instance of LayoutUpdateInterface
or layout item id is not a string
Initializes layout updates .