Skip to content
Snippets Groups Projects
Commit a95a07e8 authored by Joshua Fernandes's avatar Joshua Fernandes Committed by Deployer Robot
Browse files

[3441209] Fixed theme content provisioning creates invalid config views.view.civictheme_media.

parent 4e54381e
No related branches found
No related tags found
No related merge requests found
{"generatedAt":1713126581494,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.19.4"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"6.5.16"},"@storybook/html":{"version":"6.5.16"},"@storybook/preset-scss":{"version":"1.0.3"}},"framework":{"name":"html"},"addons":{"@storybook/addon-knobs":{"version":"6.4.0"},"@storybook/addon-essentials":{"options":{"controls":false,"docs":false,"actions":false},"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"}}}
{"generatedAt":1713261679266,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.19.4"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"6.5.16"},"@storybook/html":{"version":"6.5.16"},"@storybook/preset-scss":{"version":"1.0.3"}},"framework":{"name":"html"},"addons":{"@storybook/addon-knobs":{"version":"6.4.0"},"@storybook/addon-essentials":{"options":{"controls":false,"docs":false,"actions":false},"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"}}}
......@@ -1188,14 +1188,18 @@ function _civictheme_get_theme_blocks(): array {
*/
function civictheme_provision__media_view(): void {
// Disable the 'views.view.media' view.
\Drupal::configFactory()
->getEditable('views.view.media')
->set('status', FALSE)
->save();
$config = \Drupal::configFactory()
->getEditable('views.view.media');
if (!$config->isNew()) {
$config->set('status', FALSE)
->save();
}
// Enable the 'views.view.civictheme_media' view.
\Drupal::configFactory()
->getEditable('views.view.civictheme_media')
->set('status', TRUE)
->save();
$config = \Drupal::configFactory()
->getEditable('views.view.civictheme_media');
if (!$config->isNew()) {
$config->set('status', TRUE)
->save();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment