getDisplayedData() public method

Returns the data of the field as it is displayed to the user.
public getDisplayedData ( ) : string | array
return string | array When the field is not bound, the transformed default data is returned. When the field is bound, the bound data is returned.
Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function getDisplayedData()
 {
     if ($this->mode === self::GROUP) {
         return parent::getDisplayedData();
     } else {
         return Field::getDisplayedData();
     }
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  */
 public function getDisplayedData()
 {
     if ($this->mode === self::FORM) {
         return parent::getDisplayedData();
     }
     return Field::getDisplayedData();
 }