public function getInfo()
 {
     if ($this->data != null && !is_array($this->data->getValue())) {
         return parent::getInfo();
     }
     if ($this->hasValueElement()) {
         if ($this->isStringValue()) {
             return $this->label . ': ' . $this->decodeStringValue();
         }
     }
     return null;
 }
Beispiel #2
0
 public function getInfo()
 {
     if (!is_array($this->data->getValue())) {
         return parent::getInfo();
     }
     if ($this->hasValueElement()) {
         $type = $this->getValueElementType();
         if ($type == 'Variable') {
             return $this->label . ': ' . $this->getValueElement()->get('VariableName')->getValue();
         }
     }
     return null;
 }