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

Breadcrumb

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

function Renderer::requiresSemicolon

Check if the given node requires semicolons insertion

Parameters

Syntax\Node\Node $node Node:

Return value

bool

3 calls to Renderer::requiresSemicolon()
Renderer::joinNodes in vendor/mck89/peast/lib/Peast/Renderer.php
Joins an array of nodes with the given separator
Renderer::renderNode in vendor/mck89/peast/lib/Peast/Renderer.php
Renders a node
Renderer::renderStatementBlock in vendor/mck89/peast/lib/Peast/Renderer.php
Renders a node as a block statement

File

vendor/mck89/peast/lib/Peast/Renderer.php, line 1200

Class

Renderer
Nodes renderer class

Namespace

Peast

Code

protected function requiresSemicolon($node) {
    return !in_array($node->getType(), $this->noSemicolon);
}

API Navigation

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