fix text format
This commit is contained in:
1 parent
986c5a4f17
commit
535266db64
3 files changed
+3
-3
No files matched your search
@@ -32,7 +32,7 @@ class Slug implements FieldInterface, RequiredInterface
|
||||
|
||||
public function format(array $input, array $output): array
|
||||
{
|
||||
$value = $input[$this->name] ?? null;
|
||||
$value = (string)$input[$this->name] ?? null;
|
||||
if(empty($value)){
|
||||
$value = Str::slug($input[$this->source]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user