updated core to 8.6.3
This commit is contained in:
@@ -126,7 +126,7 @@ class ContentEntityNormalizer extends NormalizerBase {
|
||||
|
||||
// Figure out the language to use.
|
||||
if (isset($data[$default_langcode_key])) {
|
||||
// Find the field item for which the default_lancode value is set to 1 and
|
||||
// Find the field item for which the default_langcode value is set to 1 and
|
||||
// set the langcode the right default language.
|
||||
foreach ($data[$default_langcode_key] as $item) {
|
||||
if (!empty($item['value']) && isset($item['lang'])) {
|
||||
|
||||
@@ -127,7 +127,7 @@ class EntityReferenceItemNormalizer extends FieldItemNormalizer implements UuidR
|
||||
$target_entity_type_id = $item->getFieldDefinition()->getSetting('target_type');
|
||||
|
||||
// If the entity type is the same as the parent, we can check that. This is
|
||||
// just a shortcut to avoid getting the entity type defintition and checking
|
||||
// just a shortcut to avoid getting the entity type definition and checking
|
||||
// the class.
|
||||
if ($target_entity_type_id === $referencing_entity->getEntityTypeId()) {
|
||||
return $referencing_entity instanceof FieldableEntityInterface;
|
||||
|
||||
Reference in New Issue
Block a user