You are here

public static function HelperTrait::disabledProviderSecurityWarning in oEmbed Providers 1.1.x

Same name and namespace in other branches
  1. 2.x src/Traits/HelperTrait.php \Drupal\oembed_providers\Traits\HelperTrait::disabledProviderSecurityWarning()
  2. 1.0.x src/Traits/HelperTrait.php \Drupal\oembed_providers\Traits\HelperTrait::disabledProviderSecurityWarning()

Returns a security warning about disabled oEmbed providers.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup An object that, when cast to a string, returns the translated string.

2 calls to HelperTrait::disabledProviderSecurityWarning()
AllowedProvidersForm::buildForm in src/Form/AllowedProvidersForm.php
Form constructor.
oembed_providers_form_media_type_edit_form_alter in ./oembed_providers.module
Implements hook_form_FORM_ID_alter().

File

src/Traits/HelperTrait.php, line 16

Class

HelperTrait
Misc. methods available for all classes to use.

Namespace

Drupal\oembed_providers\Traits

Code

public static function disabledProviderSecurityWarning() {
  return t("When a provider is disabled, Media will continue to render its content so long as the provider's definition is returned by Media's Provider Repository.");
}