Skip to content
Snippets Groups Projects
Commit d222c3f9 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

Moved display_option in constructor inside conditional

parent b30d03cf
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -30,9 +30,8 @@ class ViewsDisplay { ...@@ -30,9 +30,8 @@ class ViewsDisplay {
public $display_options; public $display_options;
function __construct(array $display_options = array()) { function __construct(array $display_options = array()) {
$this->display_options = $display_options['display_options'];
if (!empty($display_options)) { if (!empty($display_options)) {
$this->display_options = $display_options['display_options'];
$this->display_plugin = $display_options['display_plugin']; $this->display_plugin = $display_options['display_plugin'];
$this->id = $display_options['id']; $this->id = $display_options['id'];
$this->display_title = $display_options['display_title']; $this->display_title = $display_options['display_title'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment