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

Breadcrumb

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

function CollectionInterface::column

Returns the values from the given property, method, or array key.

Parameters

string $propertyOrMethod The name of the property, method, or: array key to evaluate and return.

Return value

array<int, mixed>

Throws

InvalidPropertyOrMethod if the $propertyOrMethod does not exist on the elements in this collection.

UnsupportedOperationException if unable to call column() on this collection.

1 method overrides CollectionInterface::column()
AbstractCollection::column in vendor/ramsey/collection/src/AbstractCollection.php
@inheritDoc

File

vendor/ramsey/collection/src/CollectionInterface.php, line 99

Class

CollectionInterface
A collection represents a group of values, known as its elements.

Namespace

Ramsey\Collection

Code

public function column(string $propertyOrMethod) : array;

API Navigation

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