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

Breadcrumb

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

function IfStatement::getConsequent

Returns the statement that is activated if the test expression is true

Return value

Statement|FunctionDeclaration

File

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

Class

IfStatement
A node that represents an if statement. For example: if (test) {} else {}

Namespace

Peast\Syntax\Node

Code

public function getConsequent() {
    return $this->consequent;
}

API Navigation

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