You are here

public function ResourceFieldEntity::getMetadata in RESTful 7.2

Add metadata to the field.

This is a general purpose metadata storage for the field to store other things that are not specifically the field value.

Parameters

string $key: The metadata item identifier.

Return value

mixed The metadata value.

Overrides ResourceFieldInterface::getMetadata

1 call to ResourceFieldEntity::getMetadata()
ResourceFieldEntity::singleValue in src/Plugin/resource/Field/ResourceFieldEntity.php
Returns the value for the current single field.

File

src/Plugin/resource/Field/ResourceFieldEntity.php, line 603
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity

Class

ResourceFieldEntity
Class ResourceFieldEntity.

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function getMetadata($key) {
  return $this->decorated
    ->getMetadata($key);
}