Programming Language PHP
Namespace Oro\Component\Layout\Util
Class BlockUtils
Method/Function registerPlugin
Total Examples 2
2 code examples of PHP Oro\Component\Layout\Util\BlockUtils::registerPlugin extracted from open source projects
public function testRegisterPlugin()
{
$view = new BlockView();
$view->vars['block_prefixes'] = ['block', 'container', '_my_container'];
BlockUtils::registerPlugin($view, 'my_plugin');
$this->assertEquals(
['block', 'container', 'my_plugin', '_my_container'],
$view->vars['block_prefixes']
);
}
/**
* @inheritdoc
*/
public function finishView(BlockView $view, BlockInterface $block)
{
BlockUtils::registerPlugin($view, 'taggable_datagrid');
}