public function ResourceFieldCollectionInterface::set in RESTful 7.2
Sets a field in the collection.
Parameters
string $key: The key of the field.
ResourceFieldInterface $field: The field to set.
1 method overrides ResourceFieldCollectionInterface::set()
- ResourceFieldCollection::set in src/
Plugin/ resource/ Field/ ResourceFieldCollection.php - Sets a field in the collection.
File
- src/
Plugin/ resource/ Field/ ResourceFieldCollectionInterface.php, line 73 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollectionInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function set($key, ResourceFieldInterface $field);