You are here

public function SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  2. 8 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  3. 8.2 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  4. 8.3 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  5. 8.4 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  6. 8.5 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  7. 8.6 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  8. 8.7 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  9. 8.8 modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  10. 10.3.x modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  11. 10.0.x modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
  12. 10.1.x modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php \Drupal\social_file_private\SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()

Get all the editors/input formats we need to protect.

@todo Retrieve the input formats programmatically.

Note: this list is now fixed, but an error will be shown in the status report when there are text editors using public scheme.

Return value

array Returns an array containing config_names.

1 call to SocialFilePrivateTextEditorConfigOverride::getTextEditorsToProtect()
SocialFilePrivateTextEditorConfigOverride::loadOverrides in modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php
Returns config overrides.

File

modules/custom/social_file_private/src/SocialFilePrivateTextEditorConfigOverride.php, line 48

Class

SocialFilePrivateTextEditorConfigOverride
Class SocialFilePrivateTextEditorConfigOverride.

Namespace

Drupal\social_file_private

Code

public function getTextEditorsToProtect() {
  $config_names = [
    'editor.editor.basic_html',
    'editor.editor.full_html',
  ];
  return $config_names;
}