Example #1
0
 /**
  * Get base field value
  *
  * Some fields need to be saved as serialized arrays. Getting
  * the field by the base value is used by Fields to populate
  * their values.
  *
  * @param $field_name
  *
  * @return null
  */
 protected function getBaseFieldValue($field_name)
 {
     $data = $this->field->getForm()->getModel()->{$field_name};
     return $this->getValueOrNull($data);
 }