summaryrefslogtreecommitdiffstats
path: root/core/modules/rdf/src/Entity/RdfMapping.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/rdf/src/Entity/RdfMapping.php')
-rw-r--r--core/modules/rdf/src/Entity/RdfMapping.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/rdf/src/Entity/RdfMapping.php b/core/modules/rdf/src/Entity/RdfMapping.php
index 76607ec..072f1af 100644
--- a/core/modules/rdf/src/Entity/RdfMapping.php
+++ b/core/modules/rdf/src/Entity/RdfMapping.php
@@ -78,7 +78,7 @@ class RdfMapping extends ConfigEntityBase implements RdfMappingInterface {
if (isset($this->types)) {
return array('types' => $this->types);
}
- return NULL;
+ return array();
}
/**
@@ -105,7 +105,7 @@ class RdfMapping extends ConfigEntityBase implements RdfMappingInterface {
if (isset($this->fieldMappings[$field_name])) {
$field_mapping = array_merge($field_mapping, $this->fieldMappings[$field_name]);
}
- return $field_mapping;
+ return empty($field_mapping['properties']) ? array() : $field_mapping;
}
/**
@@ -115,7 +115,7 @@ class RdfMapping extends ConfigEntityBase implements RdfMappingInterface {
if (isset($this->fieldMappings[$field_name])) {
return $this->fieldMappings[$field_name];
}
- return NULL;
+ return array();
}
/**