public function SocialFollowLandingPageOverrides::loadOverrides in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/SocialFollowLandingPageOverrides.php \Drupal\social_follow_landing_page\SocialFollowLandingPageOverrides::loadOverrides()
- 10.0.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/SocialFollowLandingPageOverrides.php \Drupal\social_follow_landing_page\SocialFollowLandingPageOverrides::loadOverrides()
- 10.1.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/SocialFollowLandingPageOverrides.php \Drupal\social_follow_landing_page\SocialFollowLandingPageOverrides::loadOverrides()
Returns config overrides.
Parameters
array $names: A list of configuration names that are being loaded.
Return value
array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides.
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
- modules/
social_features/ social_follow_taxonomy/ modules/ social_follow_landing_page/ src/ SocialFollowLandingPageOverrides.php, line 39
Class
- SocialFollowLandingPageOverrides
- Class SocialFollowLandingPageOverrides.
Namespace
Drupal\social_follow_landing_pageCode
public function loadOverrides($names) {
$overrides = [];
// Add tag paragraph to bundle list in section paragraph config.
$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;
}