source migration to custom field set on user account

Hello,

I wrote a simple user migration of user data (email, status, Name) which is working. I also have a custom field (field_ipaddress) added to the account but I am having difficulty migrating to it. 

I tried adding the code to the main migration which makes use of an entity: user destination and a separate migration after the main migration which is using the destination of entity:field_config.

SMTP doesn't send an email from Drupal 8

Hello, 

I'm working on Drupal 8, PHP -7.0. I have installed the latest version of SMTP module which throws a below error when trying to send an email. 

  • SMTP module is active.
  • A test e-mail has been sent to xxxxxxx@xxxxxxx.com via SMTP. You may want to check the log for any error messages.
  • The configuration options have been saved.

Warning message

Disabled fields are overridden in site-specific configuration file.

Reset Password (without Drush)

A few months ago I had to remove our site and now after moving it to another host I have reinstalled it but unable to get access to the admin panel.

I have tried the following:-

1. Recovery Button - just keeps going to maintenance mode when I click email link

2. Looked in the DB and got the username and tried all the passwords I have used (Having reinstalled the DB sdo not to flood it)

3. Tried to put a hash password where current on is but no joy.

Does anyone have any idea's on how to get the password from a drupal site (Version 8.6.4) without Drush

Modify programmatically the 'core.extension.yml' file

Hello,

I have to modify the 'core.extension.yml' file programmatically, to delete a module from the list of modules.

To update I could do it in this way:

access values submited during registration

How to access values submited during registration

function demomail_entity_insert(Drupal\Core\Entity\EntityInterface $entity ) {
 
  if ($entity->getEntityTypeId() == 'user'){

  $mailManager = \Drupal::service('plugin.manager.mail');

  $module = 'demomail';
  $key = 'create_article';
  $to = 'ritx123456@gmail.com';
  $params['message'] = 'a';
  $params['node_title'] = 'lel';
  $langcode = \Drupal::currentUser()->getPreferredLangcode();
  $send = true;

Create custom promotion and adjustment

I want to make a simple wallet like functionality for Drupal commerce 8 module for my website. I researched how promotions work in drupal commerce. To adjust the price promotions use adjustment constructor.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x