Issue #2723613 by John Cook: Remove entity_load* usage for rdf_mapping entity type
parent
501e8b434a
commit
d429cd25dc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue