Need help migrating your site to Drupal?

Want to control pagination quantity in Drupal8.

Hi Guys, 

I want to control pagination quantity in Drupal 8. 

Like, I want this < 1 2 3 > instead of this < 1 2 3 4 5 6 7 > 

How can I achieve this ?

Trying to convert drupal_attributes() to new Attribute()

Hi, 

I'm converting my D7 theme logic to D8. 

I have converted this D7 line: 

return '<div' . drupal_attributes($element['#attributes']) . '>'. $element['#children'] . '</div>';

into this:

return '<div' . new Attribute($element['#attributes']) . '>'. $element['#children'] . '</div>';

But its throwing the error like this:

TypeError: Argument 1 passed to Attribute::__construct() must be of the type int, array given.

Can anyone please help me ?

confirm_form() removed | Commerce 2.x

Hi, I am trying to migrate the cetelem module for Drupal 9. The function "confirm_form()" in favor of "DrupalCoreConfirmFormBase. There is now an abstract base class, ConfirmFormBase , which implements FormInterface with specific methods that represent the parameters used by confirm_form(). Is this implemented in the modulename.module file? 

Does the modulename.admin.inc file disappear in Drupal 8 in favor of modulename.module?

drupal_get_hash_salt()

Hi, 

How can I use drupal_get_hash_salt() in Drupal 8 ??

Installing Ldap using composer.

Hi, 

How can I install ldap in D8 using composer ??

If anyone have any idea please do share. 

I have tried with these commands: 

1. composer require drupal/ldap

2. composer require drupal/ldap:^3.0@beta

3. composer require drupal/ldap:^4.0.0-alpha1

But every time I'm getting this error:

./composer.json has been updated
Running composer update drupal/ldap
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Why?

I'd like to know why you want to migrate on Drupal? What are the reasons? Can you please tell us?

Pages

Subscribe with RSS Subscribe to RSS - Converting to Drupal