includesSchema
Learn how to check whether the content schema is included.
This method checks whether the content schema is included in the response metadata.
Signature
This method has the following signature:
public function includesSchema(): boolThis method returns true when the content schema is included, or false otherwise (the default).
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\FetchOptions;
$options = FetchOptions::defaults()->withSchema();$includesSchema = $options->includesSchema();