FieldEmbedView::getFieldBuild() expects $view->getDisplay() to return an array, but it returns a class instance

Created on 19 March 2024, 8 months ago
Updated 20 June 2024, 5 months ago

FieldEmbedView::getFieldBuild() expects $view->getDisplay() to return an array, but that method returns a class instance that does not implements the __get() magic method.

The following code needs to be changed.

        $view_display = $view->getDisplay();
        foreach ($view_display['display_options']['arguments'] as $argument) {
          if (isset($display_settings['settings']['arguments'][$argument['id']])) {
            $arg_values = $this->getViewsArgumentsValues($entities, $display_field, $display_settings['settings']['arguments'][$argument['id']], $parent_entity, $view_mode, $language);
            if (!empty($arg_values)) {
              $args[] = implode('+', $arg_values);
            }
          }
        }
🐛 Bug report
Status

Needs review

Version

9.1

Component

Code

Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024