If the block is being displayed on a page where there is no menu parent then we should bail out of the pre_render callback and return the empty #markup array. This will avoid errors and notices.

CommentFileSizeAuthor
#2 notice_warning-2907553-1.patch487 bytestanc

Comments

tanc created an issue. See original summary.

tanc’s picture

StatusFileSize
new487 bytes

  • tanc committed 0890e2f on 8.x-1.x
    Issue #2907553 by tanc: Notices and Warnings when rendering the title if...
finn lewis’s picture

Status: Active » Fixed

Hi Tanc,
It looks like the patch you posted here is already committed.
http://cgit.drupalcode.org/menu_block_title/commit/?id=0890e2f5ee6ca9250...
Setting status to fixed - is that right?
Cheers,
Finn

Status: Fixed » Closed (fixed)

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