Пример #1
0
 public function testGetFrontendClass()
 {
     $this->assertEquals('', $this->_model->getFrontendClass());
     $this->_model->setData(['frontend_class' => 'some class'], 'scope');
     $this->assertEquals('some class', $this->_model->getFrontendClass());
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function getFrontendClass()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getFrontendClass');
     if (!$pluginInfo) {
         return parent::getFrontendClass();
     } else {
         return $this->___callPlugins('getFrontendClass', func_get_args(), $pluginInfo);
     }
 }