/** * {@inheritdoc} */ public function getPluginDefinition() { $definition = []; // While normal plugins do not change their definitions on the fly, this // one does so accommodate for that. foreach (parent::getPluginDefinition() as $key => $value) { $definition[$key] = isset($this->{$key}) ? $this->{$key} : $value; } return $definition; }