Skip to content

Commit 84a64f3

Browse files
Support entry_class option on collections (#545)
1 parent ea02acd commit 84a64f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Collections/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public static function fromModel(Model $model)
3636
->futureDateBehavior($model->settings['future_date_behavior'] ?? null)
3737
->pastDateBehavior($model->settings['past_date_behavior'] ?? null)
3838
->previewTargets($model->settings['preview_targets'] ?? [])
39+
->entryClass($model->settings['entry_class'] ?? null)
3940
->handle($model->handle)
4041
->model($model);
4142
}
@@ -76,6 +77,7 @@ public static function makeModelFromContract(Contract $source)
7677
'future_date_behavior' => $source->futureDateBehavior(),
7778
'preview_targets' => $source->previewTargets(),
7879
'origin_behavior' => $source->originBehavior(),
80+
'entry_class' => $source->entryClass(),
7981
]);
8082

8183
return $model;

0 commit comments

Comments
 (0)