summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-15 07:33:58 (GMT)
committerNathaniel Catchpole2016-02-15 07:33:58 (GMT)
commitd5a7334535236136cec6e7948a6b85a590a6aba5 (patch)
treed007200e471de5bd08036fde3517658a62222eee
parentbe42f0e81b58320f1ff2a0f9d6ddccf4ab60c1f7 (diff)
Issue #2641608 by Mac_Weber: Replace deprecated usage of entity_create('rdf_mapping') with a direct call to RdfMapping::create()
-rw-r--r--core/modules/rdf/rdf.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module
index 33a3e92..0c7cf5c 100644
--- a/core/modules/rdf/rdf.module
+++ b/core/modules/rdf/rdf.module
@@ -7,6 +7,7 @@
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Template\Attribute;
+use Drupal\rdf\Entity\RdfMapping;
/**
* Implements hook_help().
@@ -73,7 +74,7 @@ function rdf_get_mapping($entity_type, $bundle) {
// If not found, create a fresh mapping object.
if (!$mapping) {
- $mapping = entity_create('rdf_mapping', array(
+ $mapping = RdfMapping::create(array(
'targetEntityType' => $entity_type,
'bundle' => $bundle,
));