diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 33a3e92a2bd5b7ad3c3826c76c3725de06b0f64c..0c7cf5ceebf3cbd2abae5a8cb43f5fc4fdabe5fa 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, ));