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
1dde116d
Commit
1dde116d
authored
12 years ago
by
Daniel Wehner
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
re-add and improve the documented variables on the handler
parent
0c668f62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Drupal/views/Plugin/views/Handler.php
+61
-3
61 additions, 3 deletions
lib/Drupal/views/Plugin/views/Handler.php
lib/Drupal/views/Plugin/views/Plugin.php
+17
-6
17 additions, 6 deletions
lib/Drupal/views/Plugin/views/Plugin.php
with
78 additions
and
9 deletions
lib/Drupal/views/Plugin/views/Handler.php
+
61
−
3
View file @
1dde116d
...
@@ -11,10 +11,68 @@
...
@@ -11,10 +11,68 @@
class
Handler
extends
Plugin
{
class
Handler
extends
Plugin
{
/**
/**
* init the handler with necessary data.
* Where the $query object will reside:
* @param $view
*
* @var Drupal\views\Plugin\views\query\QueryPluginBase
*/
public
$query
=
NULL
;
/**
* The table this handler is attached to.
*
* @var string
*/
public
$table
;
/**
* The alias of the table of this handler which is used in the query.
*
* @var string
*/
public
$table_alias
;
/**
* When a table has been moved this property is set.
*
* @var string
*/
public
$actual_table
;
/**
* The actual field in the database table, maybe different
* on other kind of query plugins/special handlers.
*
* @var string
*/
public
$real_field
;
/**
* With field you can override the real_field if the real field is not set.
*
* @var string
*/
public
$field
;
/**
* When a field has been moved this property is set.
*
* @var string
*/
public
$actual_field
;
/**
* The relationship used for this field.
*
* @var string
*/
public
$relationship
=
NULL
;
/**
* Init the handler with necessary data.
*
* @param Drupal\views\View $view
* The $view object this handler is attached to.
* The $view object this handler is attached to.
* @param $options
* @param
array
$options
* The item from the database; the actual contents of this will vary
* The item from the database; the actual contents of this will vary
* based upon the type of handler.
* based upon the type of handler.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
lib/Drupal/views/Plugin/views/Plugin.php
+
17
−
6
View file @
1dde116d
...
@@ -13,27 +13,38 @@ abstract class Plugin extends PluginBase {
...
@@ -13,27 +13,38 @@ abstract class Plugin extends PluginBase {
/**
/**
* Except for displays, options for the object will be held here.
* Except for displays, options for the object will be held here.
*
* @var array
*/
*/
var
$options
=
array
();
public
$options
=
array
();
/**
/**
* The top object of a view.
* The top object of a view.
*
*
* @var
v
iew
* @var
Drupal\views\V
iew
*/
*/
var
$view
=
NULL
;
public
$view
=
NULL
;
/**
/**
*
Handler
's definition
*
Plugins
's definition
*
*
* @var array
* @var array
*/
*/
var
$definition
;
public
$definition
;
/**
/**
* The plugin type of this plugin, for example style or query.
* The plugin type of this plugin, for example style or query.
*/
*/
var
$plugin_type
=
NULL
;
public
$plugin_type
=
NULL
;
/**
* An array which identifies the instance in the views plugin hierarchy.
*
* For handlers this is for example display_id, type, table, id.
*
* @var array
*/
public
$localization_keys
;
/**
/**
* Constructs a Plugin object.
* Constructs a Plugin object.
...
...
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