Skip to content
Snippets Groups Projects
Commit 83c47444 authored by Jess's avatar Jess
Browse files

Issue #2904711 by Jo Fitzgerald: Missing and incorrect parameter, return, and...

Issue #2904711 by Jo Fitzgerald: Missing and incorrect parameter, return, and thrown exception data types in Drupal\Core\Executable\ExecutablePluginBase
parent 9409fb9d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -15,7 +15,7 @@ abstract class ExecutablePluginBase extends ContextAwarePluginBase implements Ex
*
* @todo: This needs to go into an interface.
*
* @return array
* @return \Drupal\Core\TypedData\DataDefinitionInterface[]
* An array of typed data definitions describing available configuration
* options, keyed by option name.
*/
......@@ -30,9 +30,12 @@ public function getConfigDefinitions() {
/**
* Gets the definition of a configuration option.
*
* @param string $key
* The key of the configuration option to get.
*
* @todo: This needs to go into an interface.
*
* @return array
* @return \Drupal\Core\TypedData\DataDefinitionInterface|false
* The typed data definition describing the configuration option, or FALSE
* if the option does not exist.
*/
......@@ -71,6 +74,9 @@ public function getConfig() {
*
* @return \Drupal\Core\Executable\ExecutablePluginBase
* The executable object for chaining.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
* If the provided configuration value does not pass validation.
*/
public function setConfig($key, $value) {
if ($definition = $this->getConfigDefinition($key)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment