예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getLabel($labelPrefix = '')
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getLabel');
     if (!$pluginInfo) {
         return parent::getLabel($labelPrefix);
     } else {
         return $this->___callPlugins('getLabel', func_get_args(), $pluginInfo);
     }
 }
예제 #2
0
 public function testGetLabelTranslatesLabelAndPrefix()
 {
     $this->_model->setData(['label' => 'element label'], 'scope');
     $this->assertEquals(__('some prefix') . ' ' . __('element label'), $this->_model->getLabel('some prefix'));
 }