Skip to content
Snippets Groups Projects

Issue #3263877: DefaultEntityValue - document configuration properties and improve documentation

Merged Issue #3263877: DefaultEntityValue - document configuration properties and improve documentation
1 unresolved thread
1 unresolved thread
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
@@ -9,7 +9,7 @@ use Drupal\migrate\Row;
@@ -9,7 +9,7 @@ use Drupal\migrate\Row;
* Returns EntityLookup for a given default value if input is empty.
* Returns EntityLookup for a given default value if input is empty.
*
*
* Available configuration keys:
* Available configuration keys:
* - default_value: The default value that will be used as for entity lookup.
* - default_value: The default value that will be used as for the entity lookup.
* For additional configuration keys, refer to the parent class.
* For additional configuration keys, refer to the parent class.
*
*
* Example:
* Example:
@@ -28,8 +28,9 @@ use Drupal\migrate\Row;
@@ -28,8 +28,9 @@ use Drupal\migrate\Row;
* default_value: editorial
* default_value: editorial
* @endcode
* @endcode
*
*
* In this example the user with "editorial" name will be assigned to 'uid'
* In this example, it will look up the source value of author in the users
* destination property if the original author was not found during lookup.
* migration and if not found, use entity lookup to find a user with "editorial"
 
* username.
*
*
* @see \Drupal\migrate_plus\Plugin\migrate\process\EntityLookup
* @see \Drupal\migrate_plus\Plugin\migrate\process\EntityLookup
*
*
Loading