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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ef78dcce
Commit
ef78dcce
authored
May 5, 2014
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2252081
by Xano: Move implementation-specific docs out of PluginFormInterface
parent
8d07f4ed
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
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Component/Plugin/PluginBase.php
+7
-3
7 additions, 3 deletions
core/lib/Drupal/Component/Plugin/PluginBase.php
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
+0
-5
0 additions, 5 deletions
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
with
7 additions
and
8 deletions
core/lib/Drupal/Component/Plugin/PluginBase.php
+
7
−
3
View file @
ef78dcce
...
@@ -33,6 +33,13 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
...
@@ -33,6 +33,13 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
/**
/**
* Configuration information passed into the plugin.
* Configuration information passed into the plugin.
*
*
* When using an interface like
* \Drupal\Component\Plugin\ConfigurablePluginInterface, this is where the
* configuration should be stored.
*
* Plugin configuration is optional, so plugin implementations must provide
* their own setters and getters.
*
* @var array
* @var array
*/
*/
protected
$configuration
;
protected
$configuration
;
...
@@ -89,7 +96,4 @@ public function getDerivativeId() {
...
@@ -89,7 +96,4 @@ public function getDerivativeId() {
public
function
getPluginDefinition
()
{
public
function
getPluginDefinition
()
{
return
$this
->
pluginDefinition
;
return
$this
->
pluginDefinition
;
}
}
// Note: Plugin configuration is optional so its left to the plugin type to
// require a getter as part of its interface.
}
}
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
+
0
−
5
View file @
ef78dcce
...
@@ -38,11 +38,6 @@ public function validateConfigurationForm(array &$form, array &$form_state);
...
@@ -38,11 +38,6 @@ public function validateConfigurationForm(array &$form, array &$form_state);
/**
/**
* Form submission handler.
* Form submission handler.
*
*
* To properly store submitted form values store them in $this->configuration.
* @code
* $this->configuration['some_value'] = $form_state['values']['some_value'];
* @endcode
*
* @param array $form
* @param array $form
* An associative array containing the structure of the form.
* An associative array containing the structure of the form.
* @param array $form_state
* @param array $form_state
...
...
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