Error in 'hook_email_registration_name ()'

I want to use Email Registration so that my username is also my email address.

function custom_username_email_registration_name($edit,$account) {
  return $account->mail;
}

But I get an error.

ArgumentCountError: Too few arguments to function custom_username_email_registration_name(), 1 passed and exactly 2 expected in...

How can I solve it?

New Car Superstore - Auto Broker offering Lease specials - Drupal 8 Project

https://newcarsuperstore.com

New Car Superstore is an auto brokerage company specializing in auto leasing. We offer an alternative to the more conventional car dealership experience offering our clients upfront pricing, the ability to shop 100% online for a new car and the option to have it delivered to their home or office. We save our clients both time and money while providing a better vehicle selection than any one dealer can offer.
this website are subject to availability, bank and loan approval, and are subject to change at any time without any notice.

Sectors: 
Manufacturing and Energy
Technology

How to add conditional element in web form

Hello, 

I have a select element in web form. 

I also have a text field element in the same web form. Element name - Referred By. By default, this element is not visible unless this below condition is met. 

condition:

When I select Referral from the select list, I like to see the Referred By text field to display for me to enter data. 

https://drive.google.com/file/d/19EYWEnxo8y7_8vl9t6_x0K3OI-bjmUCZ/view?u...

How can I do it?

How to change the image field(media field value) runtime

I have content type news where media fields use image type. two translation are exist in system my requirement is if German translation image exist but French language image not exist then on node view page shows the german image instead of blank. how can i run time or node view hook change the image field data

How to build a full-blown digital platform for a top Israeli university?

Going for a full rebrand move + rebuilding from scratch your primary leads engine website is not an easy thing to do. It's even harder when it's a big organization having tenths of websites scattered. So imagine how hard it is when you are one of the top 4 universities in Israel.

Well that was the challenge Bar Ilan University (BIU) faced at the end of 2017. So they called us in.

Sectors: 
Education

Re-inventing digital experience with Drupal

Yad Hanadiv is one of a kind organization - possibly the biggest philanthropic fund in Israel, the front window of the Rothschild family’s huge contribution to the Israeli society and with a DNA of pure perfection and uttermost precision. So a major challenge was how to re-invent the digital experience of the organization to genuinely echo the above heavy-weight impact?

Sectors: 
Non-profit

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x