function DateTimeRangeTrait::endDateIsDisplayed
Same name in other branches
- 10 core/modules/datetime_range/src/DateTimeRangeTrait.php \Drupal\datetime_range\DateTimeRangeTrait::endDateIsDisplayed()
Gets whether the end date should be displayed.
Return value
bool True if the end date should be displayed. False otherwise.
2 calls to DateTimeRangeTrait::endDateIsDisplayed()
- DateTimeRangeTrait::renderStartEnd in core/
modules/ datetime_range/ src/ DateTimeRangeTrait.php - Creates a render array given start/end dates.
- DateTimeRangeTrait::renderStartEndWithIsoAttribute in core/
modules/ datetime_range/ src/ DateTimeRangeTrait.php - Creates a render array with ISO attributes given start/end dates.
File
-
core/
modules/ datetime_range/ src/ DateTimeRangeTrait.php, line 150
Class
- DateTimeRangeTrait
- Provides friendly methods for datetime range.
Namespace
Drupal\datetime_rangeCode
protected function endDateIsDisplayed() : bool {
switch ($this->getSetting('from_to')) {
case DateTimeRangeConstantsInterface::BOTH:
case DateTimeRangeConstantsInterface::END_DATE:
return TRUE;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.