src/Utility/Validate/Utility.php
public static function isVirtualModuleField(string $module, string $field) : bool
    {
        $config = self::getVirtualModuleFields($module);

        if (empty($config) || !is_array($config)) {
            return false;
        }

        return in_array($field, array_keys($config));
    }
public static function isVirtualModuleField(string $module, string $field) : bool
    {
        $config = self::getVirtualModuleFields($module);

        if (empty($config) || !is_array($config)) {
            return false;
        }

        return in_array($field, array_keys($config));
    }
public static function isVirtualModuleField ( string $ module , string $ field ) : bool { $ config = self :: getVirtualModuleFields ( $ module ) ; if ( empty ( $ config ) || ! is_array ( $ config ) ) { return false ; } return in_array ( $ field , array_keys ( $ config ) ) ; }
Check if the field is defined in the module's virtual fields

The validity of the virtual field definition is checked
elsewhere.  Here we only verify that the field exists in
the `[virtualFields]` section definition.

@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 s virtual fields