Skip to content
Snippets Groups Projects
Commit 6e78c3a4 authored by Owen Bush's avatar Owen Bush
Browse files

Resolve minor coding standards issues with RecurringEventsFullCalendarProcessor

parent 40527949
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ namespace Drupal\recurring_events\Plugin\FullcalendarViewProcessor; ...@@ -4,7 +4,7 @@ namespace Drupal\recurring_events\Plugin\FullcalendarViewProcessor;
use Drupal\fullcalendar_view\Plugin\FullcalendarViewProcessorBase; use Drupal\fullcalendar_view\Plugin\FullcalendarViewProcessorBase;
use Drupal\recurring_events\Entity\EventInstance; use Drupal\recurring_events\Entity\EventInstance;
use Drupal\Component\Utility\Xss; use Drupal\Core\StringTranslation\StringTranslationTrait;
/** /**
* Recurring Events Full Calendar View Processor plugin. * Recurring Events Full Calendar View Processor plugin.
...@@ -19,6 +19,8 @@ use Drupal\Component\Utility\Xss; ...@@ -19,6 +19,8 @@ use Drupal\Component\Utility\Xss;
*/ */
class RecurringEventsFullCalendarProcessor extends FullcalendarViewProcessorBase { class RecurringEventsFullCalendarProcessor extends FullcalendarViewProcessorBase {
use StringTranslationTrait;
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
...@@ -55,7 +57,7 @@ class RecurringEventsFullCalendarProcessor extends FullcalendarViewProcessorBase ...@@ -55,7 +57,7 @@ class RecurringEventsFullCalendarProcessor extends FullcalendarViewProcessorBase
$title = $fields[$options['title']]->advancedRender($row); $title = $fields[$options['title']]->advancedRender($row);
} }
else { else {
$title = t('Invalid event title'); $title = $this->t('Invalid event title');
} }
$entries[$key]['title'] = $title; $entries[$key]['title'] = $title;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment