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

Breadcrumb

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

function MapInterface::containsKey

Returns `true` if this map contains a mapping for the specified key.

Parameters

K $key The key to check in the map.:

1 method overrides MapInterface::containsKey()
AbstractMap::containsKey in vendor/ramsey/collection/src/Map/AbstractMap.php
Returns `true` if this map contains a mapping for the specified key.

File

vendor/ramsey/collection/src/Map/MapInterface.php, line 35

Class

MapInterface
An object that maps keys to values.

Namespace

Ramsey\Collection\Map

Code

public function containsKey(int|string $key) : bool;

API Navigation

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