public function ResourceFieldInterface::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.
3 methods override ResourceFieldInterface::getMetadata()
- ResourceFieldBase::getMetadata in src/
Plugin/ resource/ Field/ ResourceFieldBase.php - Add metadata to the field.
- ResourceFieldEntity::getMetadata in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - Add metadata to the field.
- ResourceFieldResource::getMetadata in src/
Plugin/ resource/ Field/ ResourceFieldResource.php - Add metadata to the field.
File
- src/
Plugin/ resource/ Field/ ResourceFieldInterface.php, line 196 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function getMetadata($key);