src/Utility/Validate/Utility.php
public static function isRealModuleField(string $module, string $field) : bool
    {
        $fields = self::getRealModuleFields($module);

        // If we couldn't get the migration, we cannot verify if the
        // field is real or not.  To avoid unnecessary fails, we
        // assume that it's real.
        if (empty($fields)) {
            return true;
        }

        return in_array($field, $fields);
    }
public static function isRealModuleField(string $module, string $field) : bool
    {
        $fields = self::getRealModuleFields($module);

        // If we couldn't get the migration, we cannot verify if the
        // field is real or not.  To avoid unnecessary fails, we
        // assume that it's real.
        if (empty($fields)) {
            return true;
        }

        return in_array($field, $fields);
    }
public static function isRealModuleField ( string $ module , string $ field ) : bool { $ fields = self :: getRealModuleFields ( $ module ) ; // If we couldn't get the migration, we cannot verify if the // field is real or not.  To avoid unnecessary fails, we // assume that it's real. if ( empty ( $ fields ) ) { return true ; } return in_array ( $ field , $ fields ) ; }
Check if the field is defined in the module migration

If the migration file does not exist or is not
parseable, it is assumed the field is real.  Presence
and validity of the migration file is checked
elsewhere.

@param string $module Module to check in
@param string $field Field to check
@return bool True if field is real, false otherwise
Check if the field is defined in the module migration