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

Breadcrumb

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

function Data::__toString

File

vendor/symfony/var-dumper/Cloner/Data.php, line 160

Class

Data
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper\Cloner

Code

public function __toString() : string {
    $value = $this->getValue();
    if (!\is_array($value)) {
        return (string) $value;
    }
    return \sprintf('%s (count=%d)', $this->getType(), \count($value));
}
RSS feed
Powered by Drupal