public static function ResourceFieldCollectionInterface::factory in RESTful 7.2
Factory.
Creates the collection and each one of the field resource fields in it based on the configuration array.
Parameters
array $fields: An array of field mappings.
RequestInterface $request: The request.
Return value
ResourceFieldCollectionInterface The newly created object.
1 method overrides ResourceFieldCollectionInterface::factory()
- ResourceFieldCollection::factory in src/
Plugin/ resource/ Field/ ResourceFieldCollection.php - Factory.
File
- src/
Plugin/ resource/ Field/ ResourceFieldCollectionInterface.php, line 30 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollectionInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public static function factory(array $fields = array(), RequestInterface $request = NULL);