You are here

HelperTrait.php in oEmbed Providers 1.0.x

Same filename and directory in other branches
  1. 2.x src/Traits/HelperTrait.php
  2. 1.1.x src/Traits/HelperTrait.php

File

src/Traits/HelperTrait.php
View 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

Namesort descending Description
HelperTrait Misc. methods available for all classes to use.