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

Breadcrumb

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

class Label

Same name in this branch
  1. 11.1.x vendor/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php \Google\Protobuf\Internal\FieldDescriptorProto\Label
  2. 11.1.x core/lib/Drupal/Core/Render/Element/Label.php \Drupal\Core\Render\Element\Label

Hierarchy

  • class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
    • class \PhpParser\Node\Stmt extends \PhpParser\NodeAbstract
      • class \PhpParser\Node\Stmt\Label extends \PhpParser\Node\Stmt

Expanded class hierarchy of Label

140 string references to 'Label'
Action::create in core/modules/system/src/Entity/Action.php
Constructs a new entity object, without permanently saving it.
Action::prepareRow in core/modules/system/src/Plugin/migrate/source/Action.php
Adds additional data to the row.
BlockContentTypeForm::form in core/modules/block_content/src/BlockContentTypeForm.php
Gets the actual form array to be built.
BlockForm::form in core/modules/block/src/BlockForm.php
Gets the actual form array to be built.
BlockPluginTrait::submitConfigurationForm in core/lib/Drupal/Core/Block/BlockPluginTrait.php
Most block plugins should not override this method. To add submission handling for a specific block type, override BlockBase::blockSubmit().

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php, line 8

Namespace

PhpParser\Node\Stmt
View source
class Label extends Stmt {
    
    /** @var Identifier Name */
    public Identifier $name;
    
    /**
     * Constructs a label node.
     *
     * @param string|Identifier $name Name
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct($name, array $attributes = []) {
        $this->attributes = $attributes;
        $this->name = \is_string($name) ? new Identifier($name) : $name;
    }
    public function getSubNodeNames() : array {
        return [
            'name',
        ];
    }
    public function getType() : string {
        return 'Stmt_Label';
    }

}

Members

Title Sort descending Modifiers Object type Summary
Label::$name public property @var Identifier Name
Label::getSubNodeNames public function
Label::getType public function
Label::__construct public function Constructs a label node.

API Navigation

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