src/Utility/Validate/Check/AbstractCheck.php
protected function addVirtualFieldsToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['virtualFieldName'])) {
            $virtualFields = Utility::getVirtualModuleFields($module, false);
            if (!empty($virtualFields)) {
                $schema['definitions']['virtualFieldName']['enum'] = array_keys($virtualFields);
            }
        }

        return $schema;
    }
protected function addVirtualFieldsToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['virtualFieldName'])) {
            $virtualFields = Utility::getVirtualModuleFields($module, false);
            if (!empty($virtualFields)) {
                $schema['definitions']['virtualFieldName']['enum'] = array_keys($virtualFields);
            }
        }

        return $schema;
    }
protected function addVirtualFieldsToSchema ( array $ schema , string $ module ) : array { if ( isset ( $ schema [ 'definitions' ] [ 'virtualFieldName' ] ) ) { $ virtualFields = Utility :: getVirtualModuleFields ( $ module , false ) ; if ( ! empty ( $ virtualFields ) ) { $ schema [ 'definitions' ] [ 'virtualFieldName' ] [ 'enum' ] = array_keys ( $ virtualFields ) ; } } return $ schema ; }
Add virtual fields from migration config to schema.

@param mixed[] $schema Schema.
@param string $module Module name
@return string[] Schema.
Add virtual fields from migration config to schema .