Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Here is a code snippet from \Drupal\migrate\Plugin\migrate\process\Callback source plugin:
...
* An example where the callable is a static method in a class:
*
* @code
* process:
* destination_field:
* plugin: callback
* callable:
* - '\Drupal\Component\Utility\Unicode'
* - strtolower
* source: source_field
* @endcode
...
In the example we have \Drupal\Component\Utility\Unicode::strtolower()
method, which was deprecated in 8.6 and removed in 9.0 (#3091447: Remove Utility component BC layers).
Proposed resolution
Change the example method to existing method, for example \Drupal\Component\Utility\Unicode::ucfirst()
.
Issue fork drupal-3185528
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
MatroskeenOpened a merge request with a trivial single-line change. Should be pretty easy to review and commit.
Comment #4
MatroskeenPushed one more commit changing
strtolower
tomb_strtolower
.Comment #5
mikelutzNice catch, simple doc change. LGTM
Comment #6
mikelutzComment #7
MatroskeenComment #8
quietone CreditAttribution: quietone as a volunteer commented@Matroskeen, yes, nice find. Thanks for the fix.
Comment #11
alexpottMerged and cherry-picked to 9.1.x since this is a docs update.