You are here

public function InvalidIntervalException::getItem in Interval Field 8

Get the item that caused the exception.

Return value

\Drupal\interval\IntervalItemInterface The item that caused the exception.

File

src/InvalidIntervalException.php, line 60

Class

InvalidIntervalException
Defines an exception for handling invalid intervals.

Namespace

Drupal\interval

Code

public function getItem() {
  return $this->item;
}