Error message

  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

tmgmt_file_html_template.html.twig

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="{{ source_language }}" lang="{{ source_language }}" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="JobID" content="{{ tjid }}" />
    <meta name="languageSource" content="{{ source_language }}" />
    <meta name="languageTarget" content="{{ target_language  }}" />

    <title>Job ID {{ tjid }}</title>
  </head>
  <body>
    {% for item_key, item in items %}
      <div class="asset" id="{{ item_key }}">
        {% for field_key, field in item %}
          <div class="atom" id="{{ field_key }}">{{ field['#text'] }}</div>
        {% endfor %}
      </div>
    {% endfor %}
  </body>
</html>
1 theme call to tmgmt_file_html_template.html.twig
Html::export in translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php
Implements TMGMTFileExportInterface::export().

File

translators/tmgmt_file/templates/tmgmt_file_html_template.html.twig
View source
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xml:lang="{{ source_language }}" lang="{{ source_language }}" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <meta name="JobID" content="{{ tjid }}" />
  6. <meta name="languageSource" content="{{ source_language }}" />
  7. <meta name="languageTarget" content="{{ target_language }}" />
  8. <title>Job ID {{ tjid }}</title>
  9. </head>
  10. <body>
  11. {% for item_key, item in items %}
  12. <div class="asset" id="{{ item_key }}">
  13. {% for field_key, field in item %}
  14. <div class="atom" id="{{ field_key }}">{{ field['#text'] }}</div>
  15. {% endfor %}
  16. </div>
  17. {% endfor %}
  18. </body>
  19. </html>