Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
drupal
Commits
5ea8bb2b
"README.md" did not exist on "92592ad76799341cefb76b54e0f51035e51210e2"
Commit
5ea8bb2b
authored
12 years ago
by
Tim Plunkett
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1760284
by tim.plunkett: Convert Views Export UI to to an Annotated
PSR-0
plugin.
parent
3905c51a
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Drupal/views/Plugin/ctools/export_ui/ViewsUI.php
+37
-2
37 additions, 2 deletions
lib/Drupal/views/Plugin/ctools/export_ui/ViewsUI.php
with
37 additions
and
2 deletions
plugin
s/export_ui/
v
iews
_ui.class
.php
→
lib/Drupal/views/Plugin/ctool
s/export_ui/
V
iews
UI
.php
+
37
−
2
View file @
5ea8bb2b
...
...
@@ -7,10 +7,45 @@
* Note that this is only a partial integration.
*/
namespace
Drupal\views\Plugin\ctools\export_ui
;
use
Drupal\ctools\Plugin\ctools\export_ui
\ExportUIPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\Core\Annotation\Translation
;
/**
* CTools Export UI class handler for Views UI.
*
* @Plugin(
* id = "views_ui",
* name = "views_ui",
* schema = "views_view",
* module = "views",
* access = "administer views",
* menu = {
* "menu_item" = "views",
* "menu_title" = "Views",
* "menu_description" = "Manage customized lists of content.",
* },
* title_singular = @Translation("view"),
* title_singular_proper = @Translation("View"),
* title_plural = @Translation("views"),
* title_plural_proper = @Translation("Views"),
* strings = {
* "confirmation" = {
* "revert" = {
* "information" = @Translation("This action will permanently remove any customizations made to this view."),
* "success" = @Translation("The view has been reverted.")
* },
* "delete" = {
* "information" = @Translation("This action will permanently remove the view from your database."),
* "success" = @Translation("The view has been deleted.")
* },
* },
* }
* )
*/
class
v
iews
_ui
extends
ctools_export_ui
{
class
V
iews
UI
extends
ExportUIPluginBase
{
function
init
(
$plugin
)
{
// We modify the plugin info here so that we take the defaults and
...
...
@@ -29,7 +64,7 @@ function init($plugin) {
$plugin
[
'menu'
][
'items'
][
'revert'
][
'path'
]
=
'view/%ctools_export_ui/revert'
;
$plugin
[
'menu'
][
'items'
][
'revert'
][
'type'
]
=
MENU_VISIBLE_IN_BREADCRUMB
;
$prefix_count
=
count
(
explode
(
'/'
,
$plugin
[
'menu'
][
'menu
prefix'
]));
$prefix_count
=
count
(
explode
(
'/'
,
$plugin
[
'menu'
][
'menu
_
prefix'
]));
$plugin
[
'menu'
][
'items'
][
'add-template'
]
=
array
(
'path'
=>
'template/%/add'
,
'title'
=>
'Add from template'
,
...
...
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