Loading core/modules/migrate/src/Plugin/migrate/process/Callback.php +11 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,17 @@ * source: source_field * @endcode * * An example where the callback accepts no arguments: * * @code * process: * time: * plugin: callback * callable: time * unpack_source: true * source: [ ] * @endcode * * An example where the callback accepts more than one argument: * * @code Loading core/modules/migrate/tests/src/Unit/process/CallbackTest.php +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ public function providerCallbackArray() { [['One', 'two'], ['1', '2'], 'One, two, three!'], '1, 2, three!', ], 'pi' => [ 'pi', [], pi(), ], ]; } Loading Loading
core/modules/migrate/src/Plugin/migrate/process/Callback.php +11 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,17 @@ * source: source_field * @endcode * * An example where the callback accepts no arguments: * * @code * process: * time: * plugin: callback * callable: time * unpack_source: true * source: [ ] * @endcode * * An example where the callback accepts more than one argument: * * @code Loading
core/modules/migrate/tests/src/Unit/process/CallbackTest.php +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ public function providerCallbackArray() { [['One', 'two'], ['1', '2'], 'One, two, three!'], '1, 2, three!', ], 'pi' => [ 'pi', [], pi(), ], ]; } Loading