public function DefaultController::previewNode in View Modes Display 8
Returns content of the node.
Parameters
\Drupal\node\NodeInterface $node: The node.
Return value
string Preview content of the node.
1 string reference to 'DefaultController::previewNode'
File
- src/
Controller/ DefaultController.php, line 27
Class
- DefaultController
- Class DefaultController.
Namespace
Drupal\view_modes_display\ControllerCode
public function previewNode(NodeInterface $node) {
return $this
->preview($node);
}