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

Breadcrumb

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

function Context::add

@psalm-template T

@psalm-param T $value

@param-out T $value

File

vendor/sebastian/recursion-context/src/Context.php, line 53

Class

Context

Namespace

SebastianBergmann\RecursionContext

Code

public function add(object|array &$value) : int|string|false {
    if (is_array($value)) {
        return $this->addArray($value);
    }
    return $this->addObject($value);
}
RSS feed
Powered by Drupal