| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function getActivitylogOptions(): LogOptions |
||
| 48 | { |
||
| 49 | return LogOptions::defaults() |
||
| 50 | ->logOnly([ |
||
| 51 | 'title', |
||
| 52 | 'text_button', |
||
| 53 | 'slug', |
||
| 54 | 'locale', |
||
| 55 | 'description', |
||
| 56 | 'header', |
||
| 57 | 'footer', |
||
| 58 | 'form_id', |
||
| 59 | 'created_at', |
||
| 60 | 'updated_at' |
||
| 61 | ]) |
||
| 62 | |||
| 63 | ->logOnlyDirty() |
||
| 64 | ->dontSubmitEmptyLogs() |
||
| 65 | ->setDescriptionForEvent( |
||
| 66 | fn(string $eventName) => ("activity.action.{$eventName}") |
||
| 67 | ) |
||
| 68 | ->useLogName('form_translation'); |
||
| 69 | } |
||
| 71 |