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
295
Merge Requests
295
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
ef78dcce
Commit
ef78dcce
authored
May 05, 2014
by
jhodgdon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2252081
by Xano: Move implementation-specific docs out of PluginFormInterface
parent
8d07f4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
core/lib/Drupal/Component/Plugin/PluginBase.php
core/lib/Drupal/Component/Plugin/PluginBase.php
+7
-3
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
+0
-5
No files found.
core/lib/Drupal/Component/Plugin/PluginBase.php
View file @
ef78dcce
...
...
@@ -33,6 +33,13 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
/**
* 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
*/
protected
$configuration
;
...
...
@@ -89,7 +96,4 @@ public function getDerivativeId() {
public
function
getPluginDefinition
()
{
return
$this
->
pluginDefinition
;
}
// Note: Plugin configuration is optional so its left to the plugin type to
// require a getter as part of its interface.
}
core/lib/Drupal/Core/Plugin/PluginFormInterface.php
View file @
ef78dcce
...
...
@@ -38,11 +38,6 @@ public function validateConfigurationForm(array &$form, array &$form_state);
/**
* 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
* An associative array containing the structure of the form.
* @param array $form_state
...
...
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