We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a93c4b commit 434a531Copy full SHA for 434a531
src/lib/models/stack.php
@@ -156,9 +156,16 @@ public function getEnvironment() {
156
return $this->environment;
157
}
158
159
+ /*
160
+ * This call returns comprehensive information of all the content types available in a particular stack in your account.
161
+ * @return Stack
162
+ * */
163
public function getContentTypes($params) {
- $myArray = json_decode($params, true);
- $this->_query = $myArray;
164
+ if($params && $params !== "undefined") {
165
+ $myArray = json_decode($params, true);
166
+ $this->_query = $myArray;
167
+ }
168
+
169
return \Contentstack\Utility\contentstackRequest($this, "getcontentTypes");
170
171
0 commit comments