Add the following syntax in your twig template to generate variable with a fake value
{# @fake variable_name value_type }
The variable is generated only when a variable with the same name doesn't exist The available value types are (some type accept parameters) :
- audio
- block
- breadcrumb
- content
- coordinates
- form
- image
- link
- pager
- richtext
- search_form
- taxonomy_entry
- video
full documentation (coming soon)
Require the package with composer require erdnaxelaweb/staticfakedesign:dev-main
then activate the bundle :
ErdnaxelaWeb\StaticFakeDesignBundle\StaticFakeDesignBundle::class => ['all' => true],
Add the following root to access the examples `/static/examples:
static:
path: /static/{path}
controller: ErdnaxelaWeb\StaticFakeDesignBundle\Controller\StaticController::viewAction
requirements:
path: .*
coming soon