Problem/Motivation

EntityViewOverridesController::title() is missing.

This is causing a fatal error when we are building an entity display override in a page managed by page layout:

TypeError: Cannot assign null to property Drupal\display_builder_page_layout\Plugin\DisplayVariant\DisplayBuilderPageVariant::$title of type Drupal\Component\Render\MarkupInterface|array|string in Drupal\display_builder_page_layout\Plugin\DisplayVariant\DisplayBuilderPageVariant->setTitle() (line 182 of modules/custom/display_builder/modules/display_builder_page_layout/src/Plugin/DisplayVariant/DisplayBuilderPageVariant.php).

Proposed resolution

Add title method to EntityViewOverridesController

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pdureau created an issue. See original summary.

pdureau’s picture

Assigned: pdureau » mogtofu33
Status: Active » Needs review
pdureau’s picture

Assigned: mogtofu33 » pdureau
Status: Needs review » Needs work

I can do a bit better :)

pdureau’s picture

Assigned: pdureau » mogtofu33
Status: Needs work » Needs review

done

mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • mogtofu33 committed e648fdb7 on 1.0.x authored by pdureau
    fix: #3557824 Missing title in EntityViewOverridesController
    
    By: @...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.