Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public static function createFromSettings(array $settings = []): self |
||
48 | { |
||
49 | $demand = GeneralUtility::makeInstance(ForeignRecordDemand::class); |
||
50 | $demand->setStoragePage((string)($settings['storagePage'] ?? '')); |
||
51 | $demand->setRestrictForeignRecordsToStoragePage( |
||
52 | (bool)($settings['restrictForeignRecordsToStoragePage'] ?? false) |
||
53 | ); |
||
54 | |||
55 | return $demand; |
||
56 | } |
||
58 |