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

Breadcrumb

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

function AbstractMap::containsKey

Overrides MapInterface::containsKey

1 call to AbstractMap::containsKey()
AbstractMap::replace in vendor/ramsey/collection/src/Map/AbstractMap.php

File

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

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 containsKey(int|string $key) : bool {
    return array_key_exists($key, $this->data);
}

API Navigation

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