Verified Commit 88aa6a2c authored by Dave Long's avatar Dave Long
Browse files

Issue #3557056 by alexpott, andypost: Fix...

Issue #3557056 by alexpott, andypost: Fix \Drupal\views_test_config\Hook\ViewsTestConfigHooks::viewLoad() on PHP 8.5

(cherry picked from commit 4efb8f5d)
parent 61189f33
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ class ViewsTestConfigHooks {
  public function viewLoad(array $views): void {
    // Emulate a severely broken view: this kind of view configuration cannot be
    // saved, it can likely be returned only by a corrupt active configuration.
    $broken_view_id = \Drupal::state()->get('views_test_config.broken_view');
    $broken_view_id = \Drupal::state()->get('views_test_config.broken_view', '');
    if (isset($views[$broken_view_id])) {
      $display =& $views[$broken_view_id]->getDisplay('default');
      $display['display_options']['fields']['id_broken'] = NULL;