示例#1
0
 public static function getValues(Entity $entityObject, $field_name, $post_process = FALSE)
 {
     $field = $entityObject->getFieldItems($field_name);
     return $field;
 }
示例#2
0
 public static function getFileGenericValues(Entity $entityObject, $field_name, $post_process = FALSE)
 {
     $field = $entityObject->getFieldItems($field_name);
     if (!$post_process) {
         return $field;
     }
     $output = array();
     foreach ($field as $fid => $file) {
         $output[] = $fid;
     }
     return Utils::normalize($output);
 }