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

Breadcrumb

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

function ImgStub::__construct

Overrides ConstStub::__construct

File

vendor/symfony/var-dumper/Caster/ImgStub.php, line 19

Class

ImgStub
@author Grégoire Pineau <lyrixx@lyrixx.info>

Namespace

Symfony\Component\VarDumper\Caster

Code

public function __construct(string $data, string $contentType, string $size = '') {
    $this->value = '';
    $this->attr['img-data'] = $data;
    $this->attr['img-size'] = $size;
    $this->attr['content-type'] = $contentType;
}

API Navigation

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