Commit d5a73345 authored by catch's avatar catch

Issue #2641608 by Mac_Weber: Replace deprecated usage of ...

Issue #2641608 by Mac_Weber: Replace deprecated usage of  entity_create('rdf_mapping') with a direct call to RdfMapping::create()
parent be42f0e8
......@@ -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,
));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment