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

Breadcrumb

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

function AbstractMap::__construct

Parameters

array<K, T> $data The initial items to add to this map.:

Overrides AbstractArray::__construct

4 calls to AbstractMap::__construct()
NamedParameterMap::__construct in vendor/ramsey/collection/src/Map/NamedParameterMap.php
Constructs a new `NamedParameterMap`.
NamedParameterMap::__construct in vendor/ramsey/collection/src/Map/NamedParameterMap.php
Constructs a new `NamedParameterMap`.
TypedMap::__construct in vendor/ramsey/collection/src/Map/TypedMap.php
Constructs a map object of the specified key and value types, optionally with the specified data.
TypedMap::__construct in vendor/ramsey/collection/src/Map/TypedMap.php
Constructs a map object of the specified key and value types, optionally with the specified data.
2 methods override AbstractMap::__construct()
NamedParameterMap::__construct in vendor/ramsey/collection/src/Map/NamedParameterMap.php
Constructs a new `NamedParameterMap`.
TypedMap::__construct in vendor/ramsey/collection/src/Map/TypedMap.php
Constructs a map object of the specified key and value types, optionally with the specified data.

File

vendor/ramsey/collection/src/Map/AbstractMap.php, line 40

Class

AbstractMap
This class provides a basic implementation of `MapInterface`, to minimize the effort required to implement this interface.

Namespace

Ramsey\Collection\Map

Code

public function __construct(array $data = []) {
    parent::__construct($data);
}

API Navigation

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