Commit d429cd25 authored by catch's avatar catch

Issue #2723613 by John Cook: Remove entity_load* usage for rdf_mapping entity type

parent 501e8b43
......@@ -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) {
......
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