From fafd72fcd8ea43f2f252f2e7c13f16f596bab5f5 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Tue, 27 Oct 2015 18:18:08 +0100 Subject: [PATCH] Add a items() method that returns the Data::items array --- system/src/Grav/Common/Data/Data.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/src/Grav/Common/Data/Data.php b/system/src/Grav/Common/Data/Data.php index 6a35fbc9e..2a12eb22d 100644 --- a/system/src/Grav/Common/Data/Data.php +++ b/system/src/Grav/Common/Data/Data.php @@ -224,6 +224,16 @@ class Data implements DataInterface return $this->file()->raw(); } + /** + * Return the data items. + * + * @return array + */ + public function items() + { + return $this->items; + } + /** * Set or get the data storage. *