Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Node.php

function Node::render

Same name in this branch
  1. 11.1.x core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::render()

Renders the current node

Parameters

\Peast\Formatter\Base $formatter Formatter to use for the: rendering

Return value

string

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Node.php, line 202

Class

Node
Base class for all the nodes generated by Peast.

Namespace

Peast\Syntax\Node

Code

public function render(\Peast\Formatter\Base $formatter) {
    $renderer = new \Peast\Renderer();
    return $renderer->setFormatter($formatter)
        ->render($this);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal