Пример #1
0
 public function testGetElementAlias()
 {
     $this->_layout->addContainer('one', 'One');
     $this->_layout->addContainer('two', 'One', [], 'one', '1');
     $this->assertFalse($this->_layout->getElementAlias('one'));
     $this->assertEquals('1', $this->_layout->getElementAlias('two'));
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function addContainer($name, $label, array $options = array(), $parent = '', $alias = '')
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addContainer');
     if (!$pluginInfo) {
         return parent::addContainer($name, $label, $options, $parent, $alias);
     } else {
         return $this->___callPlugins('addContainer', func_get_args(), $pluginInfo);
     }
 }