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

Breadcrumb

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

function Template::setVar

@psalm-param array<string,string> $values

File

vendor/phpunit/php-text-template/src/Template.php, line 72

Class

Template

Namespace

SebastianBergmann\Template

Code

public function setVar(array $values, bool $merge = true) : void {
    if (!$merge || empty($this->values)) {
        $this->values = $values;
        return;
    }
    $this->values = array_merge($this->values, $values);
}

API Navigation

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