status-report-general-info.html.twig

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

Default theme implementation for the 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/modules/system/templates/status-report-general-info.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the 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. <h2>{{ 'General System Information'|t }}</h2>
  33. <div class="system-status-general-info__item">
  34. <h3 class="system-status-general-info__item-title">{{ 'Drupal Version'|t }}</h3>
  35. {{ drupal.value }}
  36. {% if drupal.description %}
  37. {{ drupal.description }}
  38. {% endif %}
  39. </div>
  40. <div class="system-status-general-info__item">
  41. <h3 class="system-status-general-info__item-title">{{ 'Last Cron Run'|t }}</h3>
  42. {{ cron.value }}
  43. {% if cron.run_cron %}
  44. {{ cron.run_cron }}
  45. {% endif %}
  46. {% if cron.description %}
  47. {{ cron.description }}
  48. {% endif %}
  49. </div>
  50. <div class="system-status-general-info__item">
  51. <h3 class="system-status-general-info__item-title">{{ 'Web Server'|t }}</h3>
  52. {{ webserver.value }}
  53. {% if webserver.description %}
  54. {{ webserver.description }}
  55. {% endif %}
  56. </div>
  57. <div class="system-status-general-info__item">
  58. <h3 class="system-status-general-info__item-title">{{ 'PHP'|t }}</h3>
  59. <h4>{{ 'Version'|t }}</h4> {{ php.value }}
  60. {% if php.description %}
  61. {{ php.description }}
  62. {% endif %}
  63. <h4>{{ 'Memory limit'|t }}</h4>{{ php_memory_limit.value }}
  64. {% if php_memory_limit.description %}
  65. {{ php_memory_limit.description }}
  66. {% endif %}
  67. </div>
  68. <div class="system-status-general-info__item">
  69. <h3 class="system-status-general-info__item-title">{{ 'Database'|t }}</h3>
  70. <h4>{{ 'Version'|t }}</h4>{{ database_system_version.value }}
  71. {% if database_system_version.description %}
  72. {{ database_system_version.description }}
  73. {% endif %}
  74. <h4>{{ 'System'|t }}</h4>{{ database_system.value }}
  75. {% if database_system.description %}
  76. {{ database_system.description }}
  77. {% endif %}
  78. </div>

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