mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 06:28:03 +01:00
Add a items() method that returns the Data::items array
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user