fix wrong return type
This commit is contained in:
parent
0691bf3744
commit
6526c6510a
1 changed files with 1 additions and 4 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
namespace Drupal\dfg_3dviewer\Service;
|
namespace Drupal\dfg_3dviewer\Service;
|
||||||
|
|
||||||
use Drupal\Core\Config\ConfigFactoryInterface;
|
use Drupal\Core\Config\ConfigFactoryInterface;
|
||||||
use Drupal\Core\Config\ImmutableConfig;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies DFG 3D Viewer module settings to config storage.
|
* Applies DFG 3D Viewer module settings to config storage.
|
||||||
|
|
@ -125,7 +124,7 @@ class Dfg3dViewerConfigApplier {
|
||||||
/**
|
/**
|
||||||
* Saves settings to config, mirroring the admin form submit behavior.
|
* Saves settings to config, mirroring the admin form submit behavior.
|
||||||
*/
|
*/
|
||||||
public function apply(array $values): ImmutableConfig {
|
public function apply(array $values): void {
|
||||||
$values = array_intersect_key($values, array_flip(self::SETTING_KEYS));
|
$values = array_intersect_key($values, array_flip(self::SETTING_KEYS));
|
||||||
$values = $this->prepareValues($values);
|
$values = $this->prepareValues($values);
|
||||||
$missing = $this->validateRequired($values);
|
$missing = $this->validateRequired($values);
|
||||||
|
|
@ -138,8 +137,6 @@ class Dfg3dViewerConfigApplier {
|
||||||
$settings->set($key, $value);
|
$settings->set($key, $value);
|
||||||
}
|
}
|
||||||
$settings->save();
|
$settings->save();
|
||||||
|
|
||||||
return $settings;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue