Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getHint()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getHint');
     if (!$pluginInfo) {
         return parent::getHint();
     } else {
         return $this->___callPlugins('getHint', func_get_args(), $pluginInfo);
     }
 }
Exemplo n.º 2
0
 public function testGetHintTranslatesElementHint()
 {
     $this->_model->setData(['hint' => 'element hint'], 'scope');
     $this->assertEquals(__('element hint'), $this->_model->getHint());
 }