private function initTypeExtensions()
    {
        $this->typeExtensions = [];

        foreach ($this->loadTypeExtensions() as $extension) {
            if (!$extension instanceof BlockTypeExtensionInterface) {
                throw new Exception\UnexpectedTypeException(
                    $extension,
                    'Oro\Component\Layout\BlockTypeExtensionInterface'
                );
            }

            $type = $extension->getExtendedType();

            $this->typeExtensions[$type][] = $extension;
        }
    }
private function initTypeExtensions()
    {
        $this->typeExtensions = [];

        foreach ($this->loadTypeExtensions() as $extension) {
            if (!$extension instanceof BlockTypeExtensionInterface) {
                throw new Exception\UnexpectedTypeException(
                    $extension,
                    'Oro\Component\Layout\BlockTypeExtensionInterface'
                );
            }

            $type = $extension->getExtendedType();

            $this->typeExtensions[$type][] = $extension;
        }
    }
private function initTypeExtensions ( ) { $ this -> typeExtensions = [ ] ; foreach ( $ this -> loadTypeExtensions ( ) as $ extension ) { if ( ! $ extension instanceof BlockTypeExtensionInterface ) { throw new Exception \ UnexpectedTypeException ( $ extension , 'Oro\Component\Layout\BlockTypeExtensionInterface' ) ; } $ type = $ extension -> getExtendedType ( ) ; $ this -> typeExtensions [ $ type ] [ ] = $ extension ; } }
Initializes block type extensions.

@throws Exception\UnexpectedTypeException if any registered block type extension is not
an instance of BlockTypeExtensionInterface
Initializes block type extensions .