status-report-general-info.html.twig

Same filename in this branch
  1. 9 core/themes/stable9/templates/admin/status-report-general-info.html.twig
  2. 9 core/themes/seven/templates/status-report-general-info.html.twig
  3. 9 core/themes/stable/templates/admin/status-report-general-info.html.twig
  4. 9 core/modules/system/templates/status-report-general-info.html.twig
Same filename in other branches
  1. 8.9.x core/themes/seven/templates/status-report-general-info.html.twig
  2. 8.9.x core/themes/claro/templates/status-report-general-info.html.twig
  3. 8.9.x core/themes/stable/templates/admin/status-report-general-info.html.twig
  4. 8.9.x core/modules/system/templates/status-report-general-info.html.twig
  5. 10 core/themes/stable9/templates/admin/status-report-general-info.html.twig
  6. 10 core/themes/claro/templates/status-report-general-info.html.twig
  7. 10 core/modules/system/templates/status-report-general-info.html.twig
  8. 11.x core/themes/stable9/templates/admin/status-report-general-info.html.twig
  9. 11.x core/themes/claro/templates/status-report-general-info.html.twig
  10. 11.x core/modules/system/templates/status-report-general-info.html.twig

Theme override for status report general info.

Available variables:

  • drupal: The status of Drupal installation:

    • value: The current status of Drupal installation.
    • description: The description for current status of Drupal installation.
  • cron: The status of cron:
    • value: The current status of cron.
    • description: The description for current status of cron.
    • cron.run_cron: An array to render a button for running cron.
  • database_system: The status of database system:
    • value: The current status of database system.
    • description: The description for current status of cron.
  • database_system_version: The info about current database version:
    • value: The current version of database.
    • description: The description for current version of database.
  • php: The current version of PHP:
    • value: The status of currently installed PHP version.
    • description: The description for current installed PHP version.
  • php_memory_limit: The info about current PHP memory limit:
    • value: The status of currently set PHP memory limit.
    • description: The description for currently set PHP memory limit.
  • webserver: The info about currently installed web server:
    • value: The status of currently installed web server.
    • description: The description for the status of currently installed web server.
1 theme call to status-report-general-info.html.twig
StatusReportPage::preRenderGeneralInfo in core/modules/system/src/Element/StatusReportPage.php
#pre_render callback to get general info out of requirements.

File

core/themes/claro/templates/status-report-general-info.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for status report general info.
  5. *
  6. * Available variables:
  7. * - drupal: The status of Drupal installation:
  8. * - value: The current status of Drupal installation.
  9. * - description: The description for current status of Drupal installation.
  10. * - cron: The status of cron:
  11. * - value: The current status of cron.
  12. * - description: The description for current status of cron.
  13. * - cron.run_cron: An array to render a button for running cron.
  14. * - database_system: The status of database system:
  15. * - value: The current status of database system.
  16. * - description: The description for current status of cron.
  17. * - database_system_version: The info about current database version:
  18. * - value: The current version of database.
  19. * - description: The description for current version of database.
  20. * - php: The current version of PHP:
  21. * - value: The status of currently installed PHP version.
  22. * - description: The description for current installed PHP version.
  23. * - php_memory_limit: The info about current PHP memory limit:
  24. * - value: The status of currently set PHP memory limit.
  25. * - description: The description for currently set PHP memory limit.
  26. * - webserver: The info about currently installed web server:
  27. * - value: The status of currently installed web server.
  28. * - description: The description for the status of currently installed web
  29. * server.
  30. */
  31. #}
  32. <div class="system-status-general-info">
  33. <h2 class="system-status-general-info__header">{{ 'General System Information'|t }}</h2>
  34. <div class="system-status-general-info__items">
  35. <div class="system-status-general-info__item card">
  36. <span class="system-status-general-info__item-icon system-status-general-info__item-icon--drupal"></span>
  37. <div class="system-status-general-info__item-details">
  38. <h3 class="system-status-general-info__item-title">{{ 'Drupal Version'|t }}</h3>
  39. {{ drupal.value }}
  40. {% if drupal.description %}
  41. <div class="description">{{ drupal.description }}</div>
  42. {% endif %}
  43. </div>
  44. </div>
  45. <div class="system-status-general-info__item card">
  46. <span class="system-status-general-info__item-icon system-status-general-info__item-icon--server"></span>
  47. <div class="system-status-general-info__item-details">
  48. <h3 class="system-status-general-info__item-title">{{ 'Web Server'|t }}</h3>
  49. {{ webserver.value }}
  50. {% if webserver.description %}
  51. <div class="description">{{ webserver.description }}</div>
  52. {% endif %}
  53. </div>
  54. </div>
  55. <div class="system-status-general-info__item card">
  56. <span class="system-status-general-info__item-icon system-status-general-info__item-icon--clock"></span>
  57. <div class="system-status-general-info__item-details">
  58. <h3 class="system-status-general-info__item-title">{{ 'Last Cron Run'|t }}</h3>
  59. {{ cron.value }}
  60. {% if cron.run_cron %}
  61. <div class="system-status-general-info__run-cron">{{ cron.run_cron }}</div>
  62. {% endif %}
  63. {% if cron.description %}
  64. <div class="system-status-general-info__description">{{ cron.description }}</div>
  65. {% endif %}
  66. </div>
  67. </div>
  68. <div class="system-status-general-info__item card">
  69. <span class="system-status-general-info__item-icon system-status-general-info__item-icon--php"></span>
  70. <div class="system-status-general-info__item-details">
  71. <h3 class="system-status-general-info__item-title">{{ 'PHP'|t }}</h3>
  72. <h4 class="system-status-general-info__sub-item-title">{{ 'Version'|t }}</h4>{{ php.value }}
  73. {% if php.description %}
  74. <div class="description">{{ php.description }}</div>
  75. {% endif %}
  76. <h4 class="system-status-general-info__sub-item-title">{{ 'Memory limit'|t }}</h4>{{ php_memory_limit.value }}
  77. {% if php_memory_limit.description %}
  78. <div class="description">{{ php_memory_limit.description }}</div>
  79. {% endif %}
  80. </div>
  81. </div>
  82. <div class="system-status-general-info__item card">
  83. <span class="system-status-general-info__item-icon system-status-general-info__item-icon--database"></span>
  84. <div class="system-status-general-info__item-details">
  85. <h3 class="system-status-general-info__item-title">{{ 'Database'|t }}</h3>
  86. <h4 class="system-status-general-info__sub-item-title">{{ 'Version'|t }}</h4>{{ database_system_version.value }}
  87. {% if database_system_version.description %}
  88. <div class="description">{{ database_system_version.description }}</div>
  89. {% endif %}
  90. <h4 class="system-status-general-info__sub-item-title">{{ 'System'|t }}</h4>{{ database_system.value }}
  91. {% if database_system.description %}
  92. <div class="description">{{ database_system.description }}</div>
  93. {% endif %}
  94. </div>
  95. </div>
  96. </div>
  97. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.