class StringValue

A class holding a string value.

Hierarchy

  • class \Drupal\Core\Database\SchemaDefinition\StringValue

Expanded class hierarchy of StringValue

4 files declare their use of StringValue
database.api.php in core/lib/Drupal/Core/Database/database.api.php
Hooks related to the Database system and the Schema API.
locale.install in core/modules/locale/locale.install
Install, update, and uninstall functions for the Locale module.
SchemaDefinitionConversionTest.php in core/tests/Drupal/Tests/Core/Database/SchemaDefinitionConversionTest.php
SchemaDefinitionTest.php in core/tests/Drupal/Tests/Core/Database/SchemaDefinitionTest.php

File

core/lib/Drupal/Core/Database/SchemaDefinition/StringValue.php, line 10

Namespace

Drupal\Core\Database\SchemaDefinition
View source
class StringValue {
  
  /**
   * Human readable name.
   */
  public readonly string $name;
  public function __construct(public readonly string $value) {
    $this->name = 'string';
  }

}

Members

Title Sort descending Modifiers Object type Summary
StringValue::$name public property Human readable name.
StringValue::__construct public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.