Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296021

valid_email_address() should use egulias/EmailValidator and become deprecated

$
0
0

Problem/Motivation

As of #2278353: Update to Symfony 2.5, the core email validation class will be using egulias/EmailValidator #2313669: Bring in egulias/EmailValidator for RFC compliant email address validation. valid_email_address() should use it too. Deprecate valid_email_address().

Proposed resolution

Modify valid_email_address() to use the egulias/EmailValidator. Mark valid_email_address() as deprecated to be removed in 8.x (or 9.x?).

Remaining tasks

Provide fall back to existing functionality for php 5.2

User interface changes

API changes

Creates the email.validator service and \Drupal::emailIsValid().

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue categoryTask because this is stability-enhancing code.
Issue priorityMajor because it increases stability of Drupal.
DisruptionNot disruptive for core/contributed and custom modules/themes because it maintains the commonly-used valid_email_address(). It will just work consistently now.

Viewing all articles
Browse latest Browse all 296021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>