예제 #1
0
 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, array $options)
 {
     BlockUtils::registerPlugin($view, 'taggable_datagrid');
 }