diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 12abf9ee9d35..4c5f98b36b7c 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -70,7 +70,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) { */ function rdf_get_mapping($entity_type, $bundle) { // Try loading the mapping from configuration. - $mapping = entity_load('rdf_mapping', $entity_type . '.' . $bundle); + $mapping = RdfMapping::load($entity_type . '.' . $bundle); // If not found, create a fresh mapping object. if (!$mapping) {