public function IntervalItem::getInterval in Interval Field 8
Gets the interval value for this item.
Return value
int The interval for this item
Overrides IntervalItemInterface::getInterval
1 call to IntervalItem::getInterval()
- IntervalItem::buildPHPString in src/
Plugin/ Field/ FieldType/ IntervalItem.php - Builds a php date interval string from the plugin properties.
File
- src/
Plugin/ Field/ FieldType/ IntervalItem.php, line 77
Class
- IntervalItem
- Provides a data type plugin for an interval item.
Namespace
Drupal\interval\Plugin\Field\FieldTypeCode
public function getInterval() {
return (int) $this
->get('interval')
->getValue();
}