You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content_management/data_migration/importing_data.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,22 +157,35 @@ Built-in expression language functions that are tagged with `ibexa.migrations.te
157
157
value: '###XXX to_string(123) XXX###'
158
158
```
159
159
160
-
- `ibexa.migrations.template.reference`- references a specific object or resource within your application or configuration. Learn more about [migration references](managing_migrations.md#references).
160
+
- `reference`- references a specific object or resource within your application or configuration. Learn more about [migration references](managing_migrations.md#references).
- `ibexa.migrations.template.project_dir`- retrieves the project's root directory path, for example to construct file paths or access project-specific resources.
168
+
- `project_dir`- retrieves the project's root directory path, for example to construct file paths or access project-specific resources.
169
169
170
170
```yaml
171
171
- fieldDefIdentifier: project_directory
172
172
languageCode: eng-US
173
173
value: '###XXX project_dir() XXX###'
174
174
```
175
175
176
+
- `env`- retrieves the value of an environmental variable.
177
+
178
+
```yaml
179
+
-
180
+
type: user
181
+
mode: update
182
+
match:
183
+
field: login
184
+
value: admin
185
+
metadata:
186
+
password: '###XXX env("ADMIN_PASSWORD") XXX###'
187
+
```
188
+
176
189
#### Custom functions
177
190
178
191
To add custom functionality into Migration's expression language declare it as a service
0 commit comments