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

Breadcrumb

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

function Standard::pExpr_Exit

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 723

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function pExpr_Exit(Expr\Exit_ $node) : string {
    $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE);
    return ($kind === Expr\Exit_::KIND_EXIT ? 'exit' : 'die') . (null !== $node->expr ? '(' . $this->p($node->expr) . ')' : '');
}

API Navigation

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