defaults

Learn how to create the default fetch options.

This method creates the default options: personalized content in the application’s default locale, with no schema, no attributes, and no fallback.

Signature

This method has the following signature:

public static function defaults(): self

This method returns a new set of options with the default values.

Example

Here is a basic example of how to use this method:

<?phpuse Croct\Plug\FetchOptions;
$options = FetchOptions::defaults();