Issue #2686931 by Mirroar: system_requirements should not call Renderer::render()

8.2.x
Nathaniel Catchpole 2016-06-30 12:11:38 +01:00
parent 63b7ded426
commit 9a0f369bfc
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ function system_requirements($phase) {
]; ];
} }
$entity_update_issues = \Drupal::service('renderer')->render($build); $entity_update_issues = \Drupal::service('renderer')->renderPlain($build);
$requirements['entity_update']['severity'] = REQUIREMENT_ERROR; $requirements['entity_update']['severity'] = REQUIREMENT_ERROR;
$requirements['entity_update']['value'] = t('Mismatched entity and/or field definitions'); $requirements['entity_update']['value'] = t('Mismatched entity and/or field definitions');
$requirements['entity_update']['description'] = t('The following changes were detected in the entity type and field definitions. @updates', ['@updates' => $entity_update_issues]); $requirements['entity_update']['description'] = t('The following changes were detected in the entity type and field definitions. @updates', ['@updates' => $entity_update_issues]);