Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
a21bde54
Commit
a21bde54
authored
11 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2010216
by kgoel, hussainweb: Convert picture_mapping_uri() to ->uri().
parent
5fe8034b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
+12
-1
12 additions, 1 deletion
.../lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
core/modules/picture/picture.module
+0
-18
0 additions, 18 deletions
core/modules/picture/picture.module
with
12 additions
and
19 deletions
core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
+
12
−
1
View file @
a21bde54
...
...
@@ -30,7 +30,6 @@
* }
* },
* list_path = "admin/config/media/picturemapping",
* uri_callback = "picture_mapping_uri",
* config_prefix = "picture.mappings",
* entity_keys = {
* "id" = "id",
...
...
@@ -163,4 +162,16 @@ public function hasMappings() {
return
$mapping_found
;
}
/**
* {@inheritdoc}
*/
public
function
uri
()
{
return
array
(
'path'
=>
'admin/config/media/picturemapping/'
.
$this
->
id
(),
'options'
=>
array
(
'entity_type'
=>
$this
->
entityType
,
'entity'
=>
$this
,
),
);
}
}
This diff is collapsed.
Click to expand it.
core/modules/picture/picture.module
+
0
−
18
View file @
a21bde54
...
...
@@ -116,24 +116,6 @@ function picture_mapping_load($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().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment