Fenos\Notifynder\Translator\TranslatorManager::cacheFromConfig PHP Method

cacheFromConfig() protected method

Get the translations from the array of the config file and it will cache them.
protected cacheFromConfig ( ) : array
return array
    protected function cacheFromConfig()
    {
        // If is expire then I retrieve directly the array
        $fileTranslation = $this->config->get('notifynder.translations');
        // I put the edited content in the cached file
        $this->compiler->cacheFile($fileTranslation);
        // return the translations
        return $fileTranslation;
    }