This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

how to over write function in contribute module

In contribute module file 
docroot/modules/contrib/apigee_edge/src/Entity/ListBuilder/AppListBuilder.php

I need to over write function 
protected function buildWarningRow(AppInterface $app, array &$rows) 

So that 'data-text-open'  and 'data-text-closed' could display different text at the user interface. 

At this moment, I modified this function directly under contribute module file, and I need to manually modify this file each time when we do a composer update.  

From Drupal 8.9.x, can we migrate directly to Drupal 9.3

From Drupal 8.9.x, can we migrate directly to Drupal 9.3 without migrating to Drupal9.2, considering end of support for Drupal9.2 by June 2022

Drupal migrations with multilingual site

Hi, I really need help. I have tried to figure out to way to import node translations from csv files. I have one CSV file that has the original node titles and urls and another one which one has translations. Then I have all the paragraphs that need to go the correct nodes / nodes translations in the database. I just cant get it to work.  The migration finds the correct paragraphs and creates the translation but in the process it overwrites the original content and I just cant figure out why.  Really thankful for any ideas.

The migration  translation code

No more theme() Function in Drupal 9

I'm converting a large Drupal 7 app to Drupal 9. It had a ubiquitous feature were the user could ask for a "report" as a pdf instead of an html page. I used the Drupal 7 theme() function to generate the html. If the user asked for html I would give them the theme() function output. If the user asked for a pdf I would execute the htmldoc linux command with the theme() function output as input and send the resulting pdf.

There is no theme() function in Drupal 9. How can I do something similar in Drupal 9?

Regarding Download file : drupal_add_html_head drupal function

Hello Support,

I am facing an issue in downloading files using the drupal_add_html_head function that is working fine in Drupal 7 But not working with drupal 9.

Here is the code that I am using in drupal 7 and want to use the same in Drupal 9. Please suggest.

How to Provide Extra Arguments to a Form

Using Drupal 9 I'd like to provide an extra argument to a form without using a controller. I did this in Drupal 7 as follows:

function np_menu(...

...

$items['np-add-pdf-password/%/%'] = array(
		'title' => 'Add PDF Password',
		'page callback' => 'drupal_get_form',
		'page arguments' => array('np_add_pdf_password_form', 1, 2),
		'access callback' => 'user_access',
		'access arguments' => array('administer noticing partners'),
		'type' => MENU_NORMAL_ITEM,
);

...

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions