public function ResourceFieldEntityReference::__construct in RESTful 7.2
Constructs a ResourceFieldEntityReference.
Parameters
array $field: Contains the field values.
RequestInterface $request: The request.
Overrides ResourceFieldEntity::__construct
File
- src/
Plugin/ resource/ Field/ ResourceFieldEntityReference.php, line 44 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntityReference.
Class
- ResourceFieldEntityReference
- Class ResourceFieldEntityReference.
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function __construct(array $field, RequestInterface $request) {
parent::__construct($field, $request);
if (!empty($field['referencedIdProperty'])) {
$this->referencedIdProperty = $field['referencedIdProperty'];
}
// TODO: Document referencedIdProperty.
}