You are here

trait HelperTrait in oEmbed Providers 1.0.x

Same name and namespace in other branches
  1. 2.x src/Traits/HelperTrait.php \Drupal\oembed_providers\Traits\HelperTrait
  2. 1.1.x src/Traits/HelperTrait.php \Drupal\oembed_providers\Traits\HelperTrait

Misc. methods available for all classes to use.

Hierarchy

2 files declare their use of HelperTrait
AllowedProvidersForm.php in src/Form/AllowedProvidersForm.php
oembed_providers.module in ./oembed_providers.module
This module allows site builders and developers to manage oEmbed providers.

File

src/Traits/HelperTrait.php, line 8

Namespace

Drupal\oembed_providers\Traits
View source
trait HelperTrait {

  /**
   * Returns a security warning about disabled oEmbed providers.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   An object that, when cast to a string, returns the translated string.
   */
  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.");
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HelperTrait::disabledProviderSecurityWarning public static function Returns a security warning about disabled oEmbed providers.