Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
222
Merge Requests
222
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
bfe397f9
Commit
bfe397f9
authored
Sep 12, 2014
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2324365
by jhodgdon: DisplayVariant plugin class needs more info added.
parent
c5fe718e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php
core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php
+8
-1
core/lib/Drupal/Core/Display/VariantBase.php
core/lib/Drupal/Core/Display/VariantBase.php
+5
-0
core/lib/Drupal/Core/Display/VariantInterface.php
core/lib/Drupal/Core/Display/VariantInterface.php
+2
-0
core/lib/Drupal/Core/Display/VariantManager.php
core/lib/Drupal/Core/Display/VariantManager.php
+2
-0
No files found.
core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php
View file @
bfe397f9
...
@@ -25,8 +25,15 @@
...
@@ -25,8 +25,15 @@
* @todo: Revise description when/if Displays are added to core:
* @todo: Revise description when/if Displays are added to core:
* https://www.drupal.org/node/2292733
* https://www.drupal.org/node/2292733
*
*
* Plugin namespace: Plugin\DisplayVariant
*
* For a working example, see
* \Drupal\block\Plugin\DisplayVariant\FullPageVariant
*
* @see \Drupal\Core\Display\VariantInterface
* @see \Drupal\Core\Display\VariantInterface
* @see \Drupal\Core\Display\VariantBase
* @see \Drupal\Core\Display\VariantManager
* @see \Drupal\Core\Display\VariantManager
* @see plugin_api
*
*
* @Annotation
* @Annotation
*/
*/
...
...
core/lib/Drupal/Core/Display/VariantBase.php
View file @
bfe397f9
...
@@ -14,6 +14,11 @@
...
@@ -14,6 +14,11 @@
/**
/**
* Provides a base class for DisplayVariant plugins.
* Provides a base class for DisplayVariant plugins.
*
* @see \Drupal\Core\Display\Annotation\DisplayVariant
* @see \Drupal\Core\Display\VariantInterface
* @see \Drupal\Core\Display\VariantManager
* @see plugin_api
*/
*/
abstract
class
VariantBase
extends
PluginBase
implements
VariantInterface
{
abstract
class
VariantBase
extends
PluginBase
implements
VariantInterface
{
...
...
core/lib/Drupal/Core/Display/VariantInterface.php
View file @
bfe397f9
...
@@ -16,7 +16,9 @@
...
@@ -16,7 +16,9 @@
* Provides an interface for DisplayVariant plugins.
* Provides an interface for DisplayVariant plugins.
*
*
* @see \Drupal\Core\Display\Annotation\DisplayVariant
* @see \Drupal\Core\Display\Annotation\DisplayVariant
* @see \Drupal\Core\Display\VariantBase
* @see \Drupal\Core\Display\VariantManager
* @see \Drupal\Core\Display\VariantManager
* @see plugin_api
*/
*/
interface
VariantInterface
extends
PluginInspectionInterface
,
ConfigurablePluginInterface
,
PluginFormInterface
{
interface
VariantInterface
extends
PluginInspectionInterface
,
ConfigurablePluginInterface
,
PluginFormInterface
{
...
...
core/lib/Drupal/Core/Display/VariantManager.php
View file @
bfe397f9
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
*
*
* @see \Drupal\Core\Display\Annotation\DisplayVariant
* @see \Drupal\Core\Display\Annotation\DisplayVariant
* @see \Drupal\Core\Display\VariantInterface
* @see \Drupal\Core\Display\VariantInterface
* @see \Drupal\Core\Display\VariantBase
* @see plugin_api
*/
*/
class
VariantManager
extends
DefaultPluginManager
{
class
VariantManager
extends
DefaultPluginManager
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment