HelperTrait.php in oEmbed Providers 1.0.x
Same filename and directory in other branches
Namespace
Drupal\oembed_providers\TraitsFile
src/Traits/HelperTrait.phpView source
<?php
namespace Drupal\oembed_providers\Traits;
/**
* Misc. methods available for all classes to use.
*/
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.");
}
}
Traits
Name | Description |
---|---|
HelperTrait | Misc. methods available for all classes to use. |