Programming Language PHP

Namespace Oro\Component\Layout

Class LayoutRegistryInterface

Total Examples 1

1 code examples of PHP Oro\Component\Layout\LayoutRegistryInterface extracted from open source projects

Was this example useful?
0
                                                    private function getBlockTypeOptionsResolver(
        string $blockTypeName,
        LayoutRegistryInterface $registry
    ): DebugOptionsResolverDecorator {
        $type = $registry->getType($blockTypeName);
        $parentName = $type->getParent();

        $decorator = $parentName
            ? clone $this->getBlockTypeOptionsResolver($parentName, $registry)
            : new DebugOptionsResolverDecorator(new OptionsResolver());

        $type->configureOptions($decorator->getOptionResolver());
        $registry->configureOptions($blockTypeName, $decorator->getOptionResolver());

        return $decorator;
    }