src/Utility/Validate/Utility.php
public static function getRealModuleFields(string $module, bool $validate = true) : array
    {
        $moduleFields = [];

        $mc = new ModuleConfig(ConfigType::MIGRATION(), $module, null, ['cacheSkip' => true]);
        $mc->setParser(new Parser($mc->createSchema(), ['validate' => $validate]));
        $moduleFields = Convert::objectToArray($mc->parse());
        $fields = Hash::extract($moduleFields, '{*}.name');

        return (array)$fields;
    }
public static function getRealModuleFields(string $module, bool $validate = true) : array
    {
        $moduleFields = [];

        $mc = new ModuleConfig(ConfigType::MIGRATION(), $module, null, ['cacheSkip' => true]);
        $mc->setParser(new Parser($mc->createSchema(), ['validate' => $validate]));
        $moduleFields = Convert::objectToArray($mc->parse());
        $fields = Hash::extract($moduleFields, '{*}.name');

        return (array)$fields;
    }
public static function getRealModuleFields ( string $ module , bool $ validate = true ) : array { $ moduleFields = [ ] ; $ mc = new ModuleConfig ( ConfigType :: MIGRATION ( ) , $ module , null , [ 'cacheSkip' => true ] ) ; $ mc -> setParser ( new Parser ( $ mc -> createSchema ( ) , [ 'validate' => $ validate ] ) ) ; $ moduleFields = Convert :: objectToArray ( $ mc -> parse ( ) ) ; $ fields = Hash :: extract ( $ moduleFields , '{*}.name' ) ; return ( array ) $ fields ; }
Returns a list of fields defined in `migration.json`.

@param string $module Module name.
@param bool $validate Should the data be validated against the schema.
@return string[] List of fields.
Returns a list of fields defined in migration . json .