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

Breadcrumb

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

function MapInterface::removeIf

Removes the entry for the specified key only if it is currently mapped to the specified value.

This performs a strict type check on the value.

Parameters

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

T $value The value to match.:

Return value

bool true if the value was removed.

1 method overrides MapInterface::removeIf()
AbstractMap::removeIf in vendor/ramsey/collection/src/Map/AbstractMap.php
Removes the entry for the specified key only if it is currently mapped to the specified value.

File

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

Class

MapInterface
An object that maps keys to values.

Namespace

Ramsey\Collection\Map

Code

public function removeIf(int|string $key, mixed $value) : bool;

API Navigation

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