public static function ResourceFieldInterface::create in RESTful 7.2
Factory.
Parameters
array $field: Contains the field values.
RequestInterface $request: The request.
Return value
ResourceFieldInterface The created field
Throws
3 methods override ResourceFieldInterface::create()
- ResourceField::create in src/
Plugin/ resource/ Field/ ResourceField.php - Factory.
- ResourceFieldEntity::create in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - Factory.
- ResourceFieldResource::create in src/
Plugin/ resource/ Field/ ResourceFieldResource.php - Factory.
File
- src/
Plugin/ resource/ Field/ ResourceFieldInterface.php, line 123 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public static function create(array $field, RequestInterface $request = NULL);