Пример #1
0
 public function testLabel()
 {
     $this->assertNull($this->dashboard->getLabel());
     $value = 'test';
     $this->assertEquals($this->dashboard, $this->dashboard->setLabel($value));
     $this->assertEquals($value, $this->dashboard->getLabel());
 }
Пример #2
0
 /**
  * Get dashboard label
  *
  * @return string
  */
 public function getLabel()
 {
     $label = $this->entity->getLabel();
     return $label ? $label : (isset($this->config['label']) ? $this->config['label'] : '');
 }