Error: Notice: Undefined index: type in teka_preprocess_node() (line 34 of themes/contrib/teka/teka.theme).

In Drupal 8 we need to use $vars['node']->getType() instead of $vars['type'] in template_preprocess_node.

Here's a patch attached.

CommentFileSizeAuthor
fixes-node-tpl-suggestion-D8.patch490 bytesbrunorios1

Comments

brunorios1 created an issue. See original summary.

  • brunorios1 authored 3c5e5c4 on 8.x-1.x
    Issue #2840673 by brunorios1: Notice: Undefined index: type in...
adrianopulz’s picture

Status: Needs review » Fixed

Patch applied to development branch. Will be added to the next release.
Thanks.

Status: Fixed » Closed (fixed)

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