src/Event/Model/ModelAfterSaveListener.php
protected function getRemindersToModules(RepositoryInterface $table) : array
    {
        $config = (new ModuleConfig(ConfigType::MODULE(), $table->getRegistryAlias()))->parseToArray();
        if (empty($config['table']['allow_reminders'])) {
            return [];
        }

        return $config['table']['allow_reminders'];
    }
protected function getRemindersToModules(RepositoryInterface $table) : array
    {
        $config = (new ModuleConfig(ConfigType::MODULE(), $table->getRegistryAlias()))->parseToArray();
        if (empty($config['table']['allow_reminders'])) {
            return [];
        }

        return $config['table']['allow_reminders'];
    }
protected function getRemindersToModules ( RepositoryInterface $ table ) : array { $ config = ( new ModuleConfig ( ConfigType :: MODULE ( ) , $ table -> getRegistryAlias ( ) ) ) -> parseToArray ( ) ; if ( empty ( $ config [ 'table' ] [ 'allow_reminders' ] ) ) { return [ ] ; } return $ config [ 'table' ] [ 'allow_reminders' ] ; }
Get a list of reminder modules

Check if the given table has reminders configured,
and if so, return the list of modules to which
reminders should be sent (Users, Contacts, etc).

@param \Cake\Datasource\RepositoryInterface $table Table to check
@return string[] List of modules
Get a list of reminder modules