Issue #2010216 by kgoel, hussainweb: Convert picture_mapping_uri() to ->uri().
parent
5fe8034bdc
commit
a21bde544e
|
@ -30,7 +30,6 @@ use Drupal\picture\PictureMappingInterface;
|
||||||
* }
|
* }
|
||||||
* },
|
* },
|
||||||
* list_path = "admin/config/media/picturemapping",
|
* list_path = "admin/config/media/picturemapping",
|
||||||
* uri_callback = "picture_mapping_uri",
|
|
||||||
* config_prefix = "picture.mappings",
|
* config_prefix = "picture.mappings",
|
||||||
* entity_keys = {
|
* entity_keys = {
|
||||||
* "id" = "id",
|
* "id" = "id",
|
||||||
|
@ -163,4 +162,16 @@ class PictureMapping extends ConfigEntityBase implements PictureMappingInterface
|
||||||
return $mapping_found;
|
return $mapping_found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function uri() {
|
||||||
|
return array(
|
||||||
|
'path' => 'admin/config/media/picturemapping/' . $this->id(),
|
||||||
|
'options' => array(
|
||||||
|
'entity_type' => $this->entityType,
|
||||||
|
'entity' => $this,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,24 +116,6 @@ function picture_mapping_load($id) {
|
||||||
return entity_load('picture_mapping', $id);
|
return entity_load('picture_mapping', $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets Picture uri callback.
|
|
||||||
*/
|
|
||||||
function picture_mapping_uri(PictureMapping $picture_mapping) {
|
|
||||||
return array(
|
|
||||||
'path' => 'admin/config/media/picturemapping/' . $picture_mapping->id(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets Picture uri callback.
|
|
||||||
*/
|
|
||||||
function picture_mapping_set_uri(PictureMapping $picture_mapping) {
|
|
||||||
return array(
|
|
||||||
'path' => 'admin/config/media/picturemapping/' . $picture_mapping->id(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_theme().
|
* Implements hook_theme().
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue