Skip to content

Instantly share code, notes, and snippets.

@mchelen
Last active July 25, 2016 18:14
Show Gist options
  • Save mchelen/db3e109f543f4dd860bfa3d7a2a0b606 to your computer and use it in GitHub Desktop.
Save mchelen/db3e109f543f4dd860bfa3d7a2a0b606 to your computer and use it in GitHub Desktop.
function test123_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) {
dpm($node);
}
/*
Recoverable fatal error: Argument 1 passed to test123_node_view() must implement interface Drupal\Core\Entity\EntityInterface, array given in test123_node_view() (line 28 of modules/custom/test123/test123.module).
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment