You are here

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'
view_modes_display.routing.yml in ./view_modes_display.routing.yml
view_modes_display.routing.yml

File

src/Controller/DefaultController.php, line 27

Class

DefaultController
Class DefaultController.

Namespace

Drupal\view_modes_display\Controller

Code

public function previewNode(NodeInterface $node) {
  return $this
    ->preview($node);
}