original_string: public function regenerateTemplates()
      {
          $this->generateTemplatesCache();
          $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
          $translations = [];
          if (is_array($domains)) {
              $translations = $this->parsePathTranslations($domains);
          }
          $translations[] = t('Plantillas regeneradas correctamente');
          return $translations;
      }
code: public function regenerateTemplates()
      {
          $this->generateTemplatesCache();
          $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
          $translations = [];
          if (is_array($domains)) {
              $translations = $this->parsePathTranslations($domains);
          }
          $translations[] = t('Plantillas regeneradas correctamente');
          return $translations;
      }
code_tokens: public function regenerateTemplates ( ) { $ this -> generateTemplatesCache ( ) ; $ domains = Cache :: getInstance ( ) -> getDataFromFile ( CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json' , Cache :: JSON , true ) ; $ translations = [ ] ; if ( is_array ( $ domains ) ) { $ translations = $ this -> parsePathTranslations ( $ domains ) ; } $ translations [ ] = t ( 'Plantillas regeneradas correctamente' ) ; return $ translations ; }
docstring: Servicio que regenera todas las plantillas
  @return array
docstring_tokens: Servicio que regenera todas las plantillas