You are here

public function ResourceFieldCollectionInterface::get in RESTful 7.2

Get an element of the collection by its key.

Parameters

string $key: The key of the field.

Return value

ResourceFieldInterface The requested field.

1 method overrides ResourceFieldCollectionInterface::get()
ResourceFieldCollection::get in src/Plugin/resource/Field/ResourceFieldCollection.php
Get an element of the collection by its key.

File

src/Plugin/resource/Field/ResourceFieldCollectionInterface.php, line 63
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollectionInterface.

Class

ResourceFieldCollectionInterface

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function get($key);