class RestrictedNameProcessorOverride in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
- 8.7 modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
- 8.8 modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
- 10.0.x modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
- 10.1.x modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
- 10.2.x modules/social_features/social_profile/modules/social_profile_privacy/src/RestrictedNameProcessorOverride.php \Drupal\social_profile_privacy\RestrictedNameProcessorOverride
Adds the Restricted Name field to our required processors.
@package Drupal\social_profile_privacy
Hierarchy
- class \Drupal\social_profile_privacy\RestrictedNameProcessorOverride implements ConfigFactoryOverrideInterface
Expanded class hierarchy of RestrictedNameProcessorOverride
1 string reference to 'RestrictedNameProcessorOverride'
- social_profile_privacy.services.yml in modules/
social_features/ social_profile/ modules/ social_profile_privacy/ social_profile_privacy.services.yml - modules/social_features/social_profile/modules/social_profile_privacy/social_profile_privacy.services.yml
1 service uses RestrictedNameProcessorOverride
- social_profile_privacy.overrider in modules/
social_features/ social_profile/ modules/ social_profile_privacy/ social_profile_privacy.services.yml - Drupal\social_profile_privacy\RestrictedNameProcessorOverride
File
- modules/
social_features/ social_profile/ modules/ social_profile_privacy/ src/ RestrictedNameProcessorOverride.php, line 14
Namespace
Drupal\social_profile_privacyView source
class RestrictedNameProcessorOverride implements ConfigFactoryOverrideInterface {
/**
* Load overrides.
*/
public function loadOverrides($names) {
$overrides = [];
// Set processor settings for social all and users.
$config_names = [
'search_api.index.social_all',
'search_api.index.social_users',
];
foreach ($config_names as $config_name) {
if (in_array($config_name, $names, TRUE)) {
$overrides[$config_name] = [
'processor_settings' => [
'tokenizer' => [
'fields' => [
'social_profile_privacy_restricted_name' => 'social_profile_privacy_restricted_name',
],
],
'ignorecase' => [
'fields' => [
'social_profile_privacy_restricted_name' => 'social_profile_privacy_restricted_name',
],
],
'transliteration' => [
'fields' => [
'social_profile_privacy_restricted_name' => 'social_profile_privacy_restricted_name',
],
],
],
];
}
}
return $overrides;
}
/**
* {@inheritdoc}
*/
public function getCacheSuffix() {
return 'SocialProfileProviacy';
}
/**
* {@inheritdoc}
*/
public function getCacheableMetadata($name) {
return new CacheableMetadata();
}
/**
* {@inheritdoc}
*/
public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestrictedNameProcessorOverride:: |
public | function |
Creates a configuration object for use during install and synchronization. Overrides ConfigFactoryOverrideInterface:: |
|
RestrictedNameProcessorOverride:: |
public | function |
Gets the cacheability metadata associated with the config factory override. Overrides ConfigFactoryOverrideInterface:: |
|
RestrictedNameProcessorOverride:: |
public | function |
The string to append to the configuration static cache name. Overrides ConfigFactoryOverrideInterface:: |
|
RestrictedNameProcessorOverride:: |
public | function |
Load overrides. Overrides ConfigFactoryOverrideInterface:: |