protected function EntityReferenceNormalizer::getSupportedFields in Commerce Cart API 8
Gets the supported fields by the normalizer.
Return value
array An array of field names that are supported.
1 call to EntityReferenceNormalizer::getSupportedFields()
- EntityReferenceNormalizer::supportsNormalization in src/
Normalizer/ EntityReferenceNormalizer.php - Checks whether the given class is supported for normalization by this normalizer.
File
- src/
Normalizer/ EntityReferenceNormalizer.php, line 74
Class
- EntityReferenceNormalizer
- Expands entity reference field values to their referenced entity.
Namespace
Drupal\commerce_cart_api\NormalizerCode
protected function getSupportedFields() {
return $this->allowedFields;
}