public function RecurringPeriodInterface::getPeriodLabel in Recurring Time Period 8
Gets a label for the period starting from the given date.
This produces a generic label. It may be desirable to override this method in a replacement plugin class.
Parameters
\DateTimeImmutable $start: The date and time to begin the period from.
\DateTimeImmutable $end: The date and time on which the period ends.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The label.
1 method overrides RecurringPeriodInterface::getPeriodLabel()
- RecurringPeriodBase::getPeriodLabel in src/
Plugin/ RecurringPeriod/ RecurringPeriodBase.php - Gets a label for the period starting from the given date.
File
- src/
Plugin/ RecurringPeriod/ RecurringPeriodInterface.php, line 111
Class
- RecurringPeriodInterface
- Defines an interface for recurring period plugins.
Namespace
Drupal\recurring_period\Plugin\RecurringPeriodCode
public function getPeriodLabel(\DateTimeImmutable $start, \DateTimeImmutable $end);