isStaticContent

Learn how to check whether default content is requested.

This method checks whether default content is requested.

Signature

This method has the following signature:

public function isStaticContent(): bool

This method returns true when default content is requested, or false otherwise.

Example

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

<?phpuse Croct\Plug\FetchOptions;
$options = FetchOptions::defaults()->withStaticContent();$static = $options->isStaticContent();