There are two content types: Heritage Texts and Source Node
Every Heritage Text content has a link to the Source Node. The link is called inside a block.
Now in the AddBlock.php file, I have to add a query to the url (the link for the Source Node). The query paramter should be the node id if the Heritage Text content.
Please let me know how can I add the query parameter.
The $url looks like the following in the code, I have tried to add a query parameter, but I know that's not the correct way to do it. Please let me know.
The error is that batch.api does not pass enough argument to my function _csvImporter_import_line($line, $session_nid, &$context). It was working whit drupal7 on php 7.0 whitout error. Now, whit the update to PHP 7.2 on server, it does not work anymore: