public function SocialMentionsConfigOverride::loadOverrides in Open Social 8.9
Same name and namespace in other branches
- 8 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.2 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.3 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.4 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.5 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.6 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.7 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 8.8 modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 10.3.x modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 10.0.x modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 10.1.x modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
- 10.2.x modules/social_features/social_mentions/src/SocialMentionsConfigOverride.php \Drupal\social_mentions\SocialMentionsConfigOverride::loadOverrides()
Returns config overrides.
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
- modules/
social_features/ social_mentions/ src/ SocialMentionsConfigOverride.php, line 20
Class
- SocialMentionsConfigOverride
- Class SocialMentionsConfigOverride.
Namespace
Drupal\social_mentionsCode
public function loadOverrides($names) {
$overrides = [];
// Add mentions filter to Basic HTML text format.
$config_name = 'filter.format.basic_html';
if (in_array($config_name, $names)) {
$config = \Drupal::service('config.factory')
->getEditable($config_name);
$dependencies = $config
->getOriginal('dependencies.module');
$overrides[$config_name]['dependencies']['module'] = $dependencies;
$overrides[$config_name]['dependencies']['module'][] = 'mentions';
$overrides[$config_name]['filters']['filter_mentions'] = [
'id' => 'filter_mentions',
'provider' => 'mentions',
'status' => TRUE,
'weight' => 40,
'settings' => [
'mentions_filter' => [
'ProfileMention' => 1,
'UserMention' => 1,
],
],
];
}
return $overrides;
}