private function initTypes()
    {
        $this->types = [];

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

            $this->types[$type->getName()] = $type;
        }
    }
private function initTypes()
    {
        $this->types = [];

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

            $this->types[$type->getName()] = $type;
        }
    }
private function initTypes ( ) { $ this -> types = [ ] ; foreach ( $ this -> loadTypes ( ) as $ type ) { if ( ! $ type instanceof BlockTypeInterface ) { throw new Exception \ UnexpectedTypeException ( $ type , 'Oro\Component\Layout\BlockTypeInterface' ) ; } $ this -> types [ $ type -> getName ( ) ] = $ type ; } }
Initializes block types.

@throws Exception\UnexpectedTypeException if any registered block type is not
an instance of BlockTypeInterface
Initializes block types .