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

Breadcrumb

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

function BreakStatement::setLabel

Sets the node's label

Parameters

Identifier $label Node's label:

Return value

$this

File

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

Class

BreakStatement
A node that represents the "break" statement inside loops.

Namespace

Peast\Syntax\Node

Code

public function setLabel($label) {
    $this->assertType($label, "Identifier", true);
    $this->label = $label;
    return $this;
}
RSS feed
Powered by Drupal