private function findFieldInstances($entityType, $entityInfo)
    {
        $ret = [];

        // Add field properties, since Drupal does not differenciate entity
        // bundles using different class for different object, we are just
        // gonna give the whole field list
        foreach (field_info_instances($entityType) as $fields) {
            foreach ($fields as $name => $instance) {

                if (isset($ret[$name])) {
                    continue;
                }

                $ret[$name] = $instance;
            }
        }

        return $ret;
    }
private function findFieldInstances($entityType, $entityInfo)
    {
        $ret = [];

        // Add field properties, since Drupal does not differenciate entity
        // bundles using different class for different object, we are just
        // gonna give the whole field list
        foreach (field_info_instances($entityType) as $fields) {
            foreach ($fields as $name => $instance) {

                if (isset($ret[$name])) {
                    continue;
                }

                $ret[$name] = $instance;
            }
        }

        return $ret;
    }
private function findFieldInstances ( $ entityType , $ entityInfo ) { $ ret = [ ] ; // Add field properties, since Drupal does not differenciate entity // bundles using different class for different object, we are just // gonna give the whole field list foreach ( field_info_instances ( $ entityType ) as $ fields ) { foreach ( $ fields as $ name => $ instance ) { if ( isset ( $ ret [ $ name ] ) ) { continue ; } $ ret [ $ name ] = $ instance ; } } return $ ret ; }
Guess the while field instances for the given entity type

@param string $entityType
@param array $entityInfo
@param string $property

@return null|array
Guess the while field instances for the given entity type