Skip to content
StringData.php 571 B
Newer Older
use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\StringInterface;

/**
 * The string data type.
 *
 * The plain value of a string is a regular PHP string. For setting the value
 * any PHP variable that casts to a string may be passed.
class StringData extends PrimitiveBase implements StringInterface {
   */
  public function getCastedValue() {
    return $this->getString();
  }