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

Breadcrumb

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

function LazyString::resolve

Casts scalars and stringable objects to strings.

Throws

\TypeError When the provided value is not stringable

File

vendor/symfony/string/LazyString.php, line 77

Class

LazyString
A string whose value is computed lazily by a callback.

Namespace

Symfony\Component\String

Code

public static final function resolve(\Stringable|string|int|float|bool $value) : string {
    return $value;
}

API Navigation

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