mirror of
https://github.com/flextype/flextype.git
synced 2025-08-13 16:44:36 +02:00
feat(entries): Entries API fetch improvements. #491
This commit is contained in:
@@ -41,11 +41,11 @@ test('test fetch() entry', function () {
|
||||
$this->assertEquals('Baz', flextype('entries')->fetch('foo/baz')['title']);
|
||||
$this->assertEquals('Zed', flextype('entries')->fetch('foo/zed')['title']);
|
||||
|
||||
flextype('emitter')->addListener('onEntriesFetchCollectionAfterInitialized', static function (): void {
|
||||
flextype('emitter')->addListener('onEntriesFetchCollectionHasResult', static function (): void {
|
||||
flextype('entries')->setStorage('fetch.data.foo/zed.title', 'ZedFromCollection!');
|
||||
});
|
||||
|
||||
flextype('emitter')->addListener('onEntriesFetchCollectionAfterInitialized', static function (): void {
|
||||
flextype('emitter')->addListener('onEntriesFetchCollectionHasResult', static function (): void {
|
||||
flextype('entries')->setStorage('fetch.data.foo/baz.title', 'BazFromCollection!');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user