/** * {@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); } }
public function testGetLabelTranslatesLabelAndPrefix() { $this->_model->setData(['label' => 'element label'], 'scope'); $this->assertEquals(__('some prefix') . ' ' . __('element label'), $this->_model->getLabel('some prefix')); }