Skip to content

Commit a99bb14

Browse files
committed
#8 Introduce consts for display modes
1 parent f1101eb commit a99bb14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Unlayer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class Unlayer extends Code
99
{
10+
public const MODE_EMAIL = 'email';
11+
public const MODE_WEB = 'web';
12+
1013
/**
1114
* The field's component.
1215
* @var string
@@ -97,7 +100,7 @@ protected function fillAttributeFromRequest(NovaRequest $request, $requestAttrib
97100
private function defaultUnlayerConfig(): array
98101
{
99102
return [
100-
'displayMode' => 'email',
103+
'displayMode' => self::MODE_EMAIL,
101104
'locale' => app()->getLocale(),
102105
];
103106
}

0 commit comments

Comments
 (0)