From f95cb08320dfa3b9808566273c17a7f864104a7b Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 28 Jun 2019 14:37:19 +0300 Subject: [PATCH] Flextype Core: Entries #175 #165 - Collections implementation - next round --- flextype/twig/EntriesTwigExtension.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flextype/twig/EntriesTwigExtension.php b/flextype/twig/EntriesTwigExtension.php index d2c9aac4..53471335 100644 --- a/flextype/twig/EntriesTwigExtension.php +++ b/flextype/twig/EntriesTwigExtension.php @@ -56,16 +56,16 @@ class EntriesTwig /** * Fetch single entry */ - public function fetch(string $entry) + public function fetch(string $id) { - return $this->flextype['entries']->fetch($entry); + return $this->flextype['entries']->fetch($id); } /** * Fetch all entries */ - public function fetchAll(string $entry, string $order_by = 'date', string $order_type = 'DESC', int $offset = null, int $length = null, bool $recursive = false) : array + public function fetchAll(string $id, array $args = []) : array { - return $this->flextype['entries']->fetchAll($entry, $order_by, $order_type, $offset, $length, $recursive); + return $this->flextype['entries']->fetchAll($id, $args); } }