Skip to content
Snippets Groups Projects

WP143: #1362: ConfigUibOverride missing interface implimentations

Merged Stein Magne Bjorklund requested to merge PHPStan_1362 into master
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -2,6 +2,7 @@
namespace Drupal\uib_common_ui\Config;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
@@ -33,10 +34,8 @@ class ConfigUibOverride implements ConfigFactoryOverrideInterface {
*/
public function loadOverrides($names): array {
if (in_array('gin_login.settings', $names, TRUE)) {
// Get the absolute path to the module and append the relative logo path.
$module_path = $this->moduleHandler->getModule('uib_common_ui')->getPath();
$logo_path = $module_path . '/public/image/uib_login_logo.svg';
$overrides['gin_login.settings']['logo'] = ['path' => $logo_path];
}
@@ -47,7 +46,7 @@ class ConfigUibOverride implements ConfigFactoryOverrideInterface {
* {@inheritDoc}
*/
public function getCacheSuffix() {
// @todo Implement getCacheSuffix() method.
return '';
}
/**
@@ -61,7 +60,7 @@ class ConfigUibOverride implements ConfigFactoryOverrideInterface {
* {@inheritDoc}
*/
public function getCacheableMetadata($name) {
// @todo Implement getCacheableMetadata() method.
return new CacheableMetadata();
}
}
Loading