diff --git a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php index f7d2793..3879463 100644 --- a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php +++ b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php @@ -119,4 +119,14 @@ public function getOutput() { return array('#markup' => $output); } + /** + * {@inheritdoc} + */ + public function defaultConfiguration() { + return [ + 'body' => '', + 'location' => '', + ] + parent::defaultConfiguration(); + } + } diff --git a/core/modules/tour/src/TipPluginBase.php b/core/modules/tour/src/TipPluginBase.php index d0278fb..1e84394 100644 --- a/core/modules/tour/src/TipPluginBase.php +++ b/core/modules/tour/src/TipPluginBase.php @@ -41,8 +41,7 @@ */ public function __construct(array $configuration, $plugin_id, $plugin_definition) { parent::__construct($configuration, $plugin_id, $plugin_definition); - - $this->configuration = $this->setConfiguration($configuration); + $this->setConfiguration($configuration); } /**