Timeline for If Content Type Equals, then
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 28, 2017 at 19:44 | comment | added | Kevin | Good info, updated. | |
Apr 28, 2017 at 19:43 | history | edited | Kevin | CC BY-SA 3.0 |
added 885 characters in body
|
Apr 28, 2017 at 19:39 | comment | added | Berdir | you should always include an $node instanceof NodeInterface check, when getting it from the request as not all pages have a node. As well as an isset() on $variables when using that. | |
Apr 27, 2017 at 23:08 | vote | accept | Chris Happy | ||
Apr 27, 2017 at 23:00 | comment | added | Kevin | Because node has not been assigned. See updated answer. | |
Apr 27, 2017 at 23:00 | history | edited | Kevin | CC BY-SA 3.0 |
added 96 characters in body
|
Apr 27, 2017 at 22:48 | comment | added | Chris Happy |
Thanks, but I'm getting Fatal error: Call to a member function getType() on a non-object . Also, var_dump($node); returns NULL
|
|
Apr 27, 2017 at 22:43 | history | answered | Kevin | CC BY-SA 3.0 |