Skip to content
Snippets Groups Projects

Add the StringTranslationTrait to the plugin trait

Merged Martin Anderson-Clutz requested to merge issue/smart_date-3470095:3470095-call-to-an into 4.1.x
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -4,13 +4,14 @@ namespace Drupal\smart_date;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Provides friendly methods for smart date range.
*/
trait SmartDatePluginTrait {
use SmartDateTrait;
use SmartDateTrait, StringTranslationTrait;
/**
* The parent entity on which the dates exist.
Loading