# Plugin Konfiguration: Value beim Aktivieren des Plugins verändern?

**URL:** <https://forum.shopware.com/t/plugin-konfiguration-value-beim-aktivieren-des-plugins-verandern/40616>\
**Category:** Programmierung\
**Created:** [18. Oktober 2016 um 09:14 UTC](https://forum.shopware.com/t/plugin-konfiguration-value-beim-aktivieren-des-plugins-verandern/40616 "2016-10-18T09:14:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenKon26](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DenKon26](https://forum.shopware.com/u/DenKon26)\
**Post date:** [18. Oktober 2016 um 09:14 UTC](https://forum.shopware.com/t/plugin-konfiguration-value-beim-aktivieren-des-plugins-verandern/40616/1 "2016-10-18T09:14:11Z")

</div>

Hallo,

&nbsp;

Besteht die Möglichkeit, beim Aktivieren eines Plugins einen bestimmten Wert in der Plugin Konfiguration zu setzen bzw zu verändern?

&nbsp;

In der Plugin-Bootstrap dachte ich an sowas wie:

```
public function enable()
{
  $this->Config()->set('myField', 'hallo');
  return parent::enable();
}

```

Funktioniert sowas? Oder muss man stattdessen die Funktion setData(…) verwenden?
