SocialFollowLandingPageOverrides.php in Open Social 10.0.x
File
modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/SocialFollowLandingPageOverrides.php
View source
<?php
namespace Drupal\social_follow_landing_page;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\StorageInterface;
class SocialFollowLandingPageOverrides implements ConfigFactoryOverrideInterface {
protected $configFactory;
public function __construct(ConfigFactoryInterface $config_factory) {
$this->configFactory = $config_factory;
}
public function loadOverrides($names) {
$overrides = [];
$config_name = 'field.field.paragraph.section.field_section_paragraph';
if (in_array($config_name, $names)) {
$overrides[$config_name]['settings']['handler_settings']['target_bundles']['tag'] = 'tag';
$overrides[$config_name]['settings']['handler_settings']['target_bundles_drag_drop']['tag']['enabled'] = TRUE;
}
return $overrides;
}
public function getCacheSuffix() {
return 'SocialFollowLandingPageOverrides';
}
public function getCacheableMetadata($name) {
return new CacheableMetadata();
}
public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
return NULL;
}
}