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
a8598610
Commit
a8598610
authored
11 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1912650
by babruix, dawehner, thsutton, mitron: Document views pager plugin base
parent
e62b3ae5
Loading
Loading
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
core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
+29
-0
29 additions, 0 deletions
...s/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
with
29 additions
and
0 deletions
core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
+
29
−
0
View file @
a8598610
...
...
@@ -21,6 +21,35 @@
/**
* The base plugin to handle pager.
*
* Pager plugins take care of everything regarding pagers, including getting
* and setting the total number of items to render the pager and setting the
* global pager arrays.
*
* To define a pager type, extend this base class. The ViewsPluginManager (used
* to create views plugins objects) adds annotated discovery for pager plugins.
* Your pager plugin must have an annotation that includes the plugin's metadata,
* for example:
* @code
* @ Plugin(
* id = "demo_pager",
* title = @ Translation("Display a demonstration pager"),
* help = @ Translation("Demonstrate pagination of views items."),
* theme = "views_demo_pager"
* )
* @endcode
* Remove spaces after @ in your actual plugin - these are put into this sample
* code so that it is not recognized as annotation.
*
* The plugin annotation contains these components:
* - id: The unique identifier of your pager plugin.
* - title: The "full" title for your pager type; used in the views UI.
* - short_title: (optional) The "short" title for your pager type;
* used in the views UI when specified.
* - help: (optional) A short help string; this is displayed in the views UI.
* - theme: The theme function used to render the pager's output.
*
* @see \Drupal\views\Plugin\ViewsPluginManager
*/
abstract
class
PagerPluginBase
extends
PluginBase
{
...
...
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