public static function getTableParentModules(Table $table): array
    {
        $result = [];

        list(, $moduleName) = pluginSplit($table->getRegistryAlias());

        try {
            $config = new ModuleConfig(ConfigType::MODULE(), $moduleName);
            $moduleConfig = $config->parseToArray();
            $result = Hash::get($moduleConfig, 'table.permissions_parent_modules', []);
        } catch (\InvalidArgumentException $e) {
            return $result;
        }

        return $result;
    }
public static function getTableParentModules(Table $table): array
    {
        $result = [];

        list(, $moduleName) = pluginSplit($table->getRegistryAlias());

        try {
            $config = new ModuleConfig(ConfigType::MODULE(), $moduleName);
            $moduleConfig = $config->parseToArray();
            $result = Hash::get($moduleConfig, 'table.permissions_parent_modules', []);
        } catch (\InvalidArgumentException $e) {
            return $result;
        }

        return $result;
    }
public static function getTableParentModules ( Table $ table ) : array { $ result = [ ] ; list ( , $ moduleName ) = pluginSplit ( $ table -> getRegistryAlias ( ) ) ; try { $ config = new ModuleConfig ( ConfigType :: MODULE ( ) , $ moduleName ) ; $ moduleConfig = $ config -> parseToArray ( ) ; $ result = Hash :: get ( $ moduleConfig , 'table.permissions_parent_modules' , [ ] ) ; } catch ( \ InvalidArgumentException $ e ) { return $ result ; } return $ result ; }
Get table parent modules from module configuration.

@param \Cake\ORM\Table $table Table instance
@return mixed[]
Get table parent modules from module configuration .