You are here

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

Same name and namespace in other branches
  1. 1.0.x src/Traits/HelperTrait.php \Drupal\oembed_providers\Traits\HelperTrait::disabledProviderSecurityWarning()
  2. 1.1.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()
OembedProviderBucketForm::form in src/OembedProviderBucketForm.php
Overrides Drupal\Core\Entity\EntityForm::form().
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.");
}