withStaticContent
Learn how to fetch default content.
This method requests the slot’s default content instead of personalized content.
Signature
This method has the following signature:
public function withStaticContent(bool $static = true): selfThis method returns a copy of the options with the change applied, leaving the original unchanged.
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\FetchOptions;
$options = FetchOptions::defaults()->withStaticContent();Parameters
The following list describes the supported parameters:
- static(optional)boolean
Whether to fetch the slot’s default content instead of personalized content.
Default:true