fluid-styleguide icon indicating copy to clipboard operation
fluid-styleguide copied to clipboard

[FEATURE] Allow PHP as fixture data provider

Open sascha-egerer opened this issue 2 years ago • 1 comments

Add support for PHP files as fixture data provider like ComponentName.fixture.php

Resolves #109

sascha-egerer avatar May 31 '23 22:05 sascha-egerer

I have also a neat helper that does render a component that than can be passed to a slot.

Looks like this:

return [
    'default'  => [
        'firstAttribute' => 'value',
        'mySlot' => $fixtureProvider->renderComponentTagWithFixture(componentIdentifier: 'component.abc', fixtureIdentifier: 'default'),
    ]
];

If this one gets merged i may also contribute this helper if you think it does make sende.

sascha-egerer avatar Jul 15 '24 15:07 sascha-egerer