Fix docblocks

This commit is contained in:
Mauricio Dinarte 2020-10-04 13:41:15 -06:00
parent 787c936caa
commit ee19809693
3 changed files with 7 additions and 7 deletions

6
11.txt
View file

@ -14,15 +14,15 @@ The explanation below is only for the user migration. It depends on a file migra
Have a look at the previous post for details on the *source* values. For reference, the user creation time is provided by the `member_since` column, and one of the values is `April 4, 2014`. The following snippet shows how the various user date related properties are set: Have a look at the previous post for details on the *source* values. For reference, the user creation time is provided by the `member_since` column, and one of the values is `April 4, 2014`. The following snippet shows how the various user date related properties are set:
``` ```yaml
<code class="language-yaml">created: created:
plugin: format_date plugin: format_date
source: member_since source: member_since
from_format: 'F j, Y' from_format: 'F j, Y'
to_format: 'U' to_format: 'U'
changed: '@created' changed: '@created'
access: '@created' access: '@created'
login: '@created'</code> login: '@created'
``` ```
The `created`, *entity property* stores a [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time) of when the user was added to Drupal. The value itself is an integer number representing the number of seconds since the [epoch](https://en.wikipedia.org/wiki/Epoch_\(computing\)). For example, `280299600` represents `Sun, 19 Nov 1978 05:00:00 GMT`. Kudos to the readers who knew this is [Drupal's default `expire` HTTP header](https://git.drupalcode.org/project/drupal/blob/8.8.x/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php#L291). Bonus points if you knew it was chosen in honor of [someone's birthdate](https://dri.es/about). ;-) The `created`, *entity property* stores a [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time) of when the user was added to Drupal. The value itself is an integer number representing the number of seconds since the [epoch](https://en.wikipedia.org/wiki/Epoch_\(computing\)). For example, `280299600` represents `Sun, 19 Nov 1978 05:00:00 GMT`. Kudos to the readers who knew this is [Drupal's default `expire` HTTP header](https://git.drupalcode.org/project/drupal/blob/8.8.x/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php#L291). Bonus points if you knew it was chosen in honor of [someone's birthdate](https://dri.es/about). ;-)

4
20.txt
View file

@ -64,8 +64,8 @@ Then specify which `columns` to make available to the migration. In this case, w
The rest of the migration is almost identical to the [CSV example](https://understanddrupal.com/articles/migrating-csv-files-drupal). Small changes were made to prevent machine name conflicts with other examples in the demo repository. For reference, the following snippet shows the *process* and *destination* sections for the LibreOffice Calc *paragraph* migration. The rest of the migration is almost identical to the [CSV example](https://understanddrupal.com/articles/migrating-csv-files-drupal). Small changes were made to prevent machine name conflicts with other examples in the demo repository. For reference, the following snippet shows the *process* and *destination* sections for the LibreOffice Calc *paragraph* migration.
``` ```yaml
<code class="language-yaml">process: process:
field_ud_book_paragraph_title: book_title field_ud_book_paragraph_title: book_title
field_ud_book_paragraph_author: 'Book author' field_ud_book_paragraph_author: 'Book author'
destination: destination:

4
27.txt
View file

@ -34,8 +34,8 @@ psf_number_components:
source: src_decimal_number source: src_decimal_number
``` ```
``` ```console
<code class="language-bash">$ drush mim ud_migrations_debug $ drush mim ud_migrations_debug
[notice] Processed 3 items (0 created, 0 updated, 3 failed, 0 ignored) - done with 'ud_migrations_debug' [notice] Processed 3 items (0 created, 0 updated, 3 failed, 0 ignored) - done with 'ud_migrations_debug'
In MigrateToolsCommands.php line 811: In MigrateToolsCommands.php line 811: