You are here

public function IntervalItem::getPeriod in Interval Field 8

Gets the period value for this item.

Return value

int The period for this item

Overrides IntervalItemInterface::getPeriod

1 call to IntervalItem::getPeriod()
IntervalItem::getIntervalPlugin in src/Plugin/Field/FieldType/IntervalItem.php
Gets the interval plugin for this item.

File

src/Plugin/Field/FieldType/IntervalItem.php, line 84

Class

IntervalItem
Provides a data type plugin for an interval item.

Namespace

Drupal\interval\Plugin\Field\FieldType

Code

public function getPeriod() {
  return $this
    ->get('period')
    ->getString();
}