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

Breadcrumb

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

function MapInterface::remove

Removes the mapping for a key from this map if it is present.

Parameters

K $key The key to remove from the map.:

Return value

T | null the previous value associated with key, or `null` if there was no mapping for `$key`.

1 method overrides MapInterface::remove()
AbstractMap::remove in vendor/ramsey/collection/src/Map/AbstractMap.php

File

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

Class

MapInterface
An object that maps keys to values.

Namespace

Ramsey\Collection\Map

Code

public function remove(int|string $key) : mixed;

API Navigation

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