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

Breadcrumb

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

function JsonConfigSource::arrayUnshiftRef

Prepend a reference to an element to the beginning of an array.

Parameters

mixed[] $array:

mixed $value:

1 call to JsonConfigSource::arrayUnshiftRef()
JsonConfigSource::manipulateJson in vendor/composer/composer/src/Composer/Config/JsonConfigSource.php

File

vendor/composer/composer/src/Composer/Config/JsonConfigSource.php, line 292

Class

JsonConfigSource
JSON Configuration Source

Namespace

Composer\Config

Code

private function arrayUnshiftRef(array &$array, &$value) : int {
    $return = array_unshift($array, '');
    $array[0] =& $value;
    return $return;
}

API Navigation

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