public functiongetPluginDefinition() {
$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] = $this->{$key} ?? $value;
}
return$definition;
}