You are here

public function DateRecurItem::getDelta in Recurring Dates Field 8

Get the item's delta.

Field items have their name property set to the delta.

Return value

int

File

src/Plugin/Field/FieldType/DateRecurItem.php, line 211

Class

DateRecurItem
Plugin implementation of the 'date_recur' field type.

Namespace

Drupal\date_recur\Plugin\Field\FieldType

Code

public function getDelta() {
  return (int) $this->name;
}