Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ef78dcce
Commit
ef78dcce
authored
May 05, 2014
by
Jennifer Hodgdon
Browse files
Issue
#2252081
by Xano: Move implementation-specific docs out of PluginFormInterface
parent
8d07f4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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