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

Breadcrumb

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

function Standard::pExpr_Include

File

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

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function pExpr_Include(Expr\Include_ $node, int $precedence, int $lhsPrecedence) : string {
    static $map = [
        Expr\Include_::TYPE_INCLUDE => 'include',
        Expr\Include_::TYPE_INCLUDE_ONCE => 'include_once',
        Expr\Include_::TYPE_REQUIRE => 'require',
        Expr\Include_::TYPE_REQUIRE_ONCE => 'require_once',
    ];
    return $this->pPrefixOp(Expr\Include_::class, $map[$node->type] . ' ', $node->expr, $precedence, $lhsPrecedence);
}

API Navigation

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