Skip to content

Commit 9750bb7

Browse files
committed
refactor: ♻️ include_branch function added
1 parent 0507b00 commit 9750bb7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Stack/BaseQuery.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,23 @@ public function includeFallback()
307307

308308
return $this->queryObject;
309309
}
310+
311+
/**
312+
* To include branch of publish content.
313+
*
314+
* @return Query
315+
*/
316+
public function includeBranch()
317+
{
318+
$this->queryObject->_query = call_user_func(
319+
'contentstackAddBoolean',
320+
'include_branch',
321+
$this->queryObject->_query
322+
);
323+
324+
return $this->queryObject;
325+
}
326+
310327
/**
311328
* To include schema along with entries
312329
*

0 commit comments

Comments
 (0)