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
53e54ea6
Commit
53e54ea6
authored
8 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2722763
by drnikki: Select::extend doc incorrectly says to use base name
parent
770fcd0f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Database/Query/ExtendableInterface.php
+11
-8
11 additions, 8 deletions
core/lib/Drupal/Core/Database/Query/ExtendableInterface.php
with
11 additions
and
8 deletions
core/lib/Drupal/Core/Database/Query/ExtendableInterface.php
+
11
−
8
View file @
53e54ea6
...
...
@@ -6,11 +6,11 @@
* Interface for extendable query objects.
*
* "Extenders" follow the "Decorator" OOP design pattern. That is, they wrap
* and "decorate" another object.
In our case, they implement the same
interface
* as select queries and wrap a select query, to which they delegate
almost all
* operations.
Subclasses of this class may implement additional
methods or
* override existing methods as appropriate.
Extenders may also wrap
other
* extender objects, allowing for arbitrarily complex "enhanced" queries.
* and "decorate" another object. In our case, they implement the same
*
interface
as select queries and wrap a select query, to which they delegate
*
almost all
operations. Subclasses of this class may implement additional
*
methods or
override existing methods as appropriate. Extenders may also wrap
*
other
extender objects, allowing for arbitrarily complex "enhanced" queries.
*/
interface
ExtendableInterface
{
...
...
@@ -18,9 +18,12 @@ interface ExtendableInterface {
* Enhance this object by wrapping it in an extender object.
*
* @param $extender_name
* The base name of the extending class. The base name will be checked
* against the current database connection to allow driver-specific subclasses
* as well, using the same logic as the query objects themselves.
* The fully-qualified name of the extender class, without the leading '\'
* (for example, Drupal\my_module\myExtenderClass). The extender name will
* be checked against the current database connection to allow
* driver-specific subclasses as well, using the same logic as the query
* objects themselves.
*
* @return \Drupal\Core\Database\Query\ExtendableInterface
* The extender object, which now contains a reference to this 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