Email.php

Namespace

Drupal\Core\TypedData\Plugin\DataType

File

core/lib/Drupal/Core/TypedData/Plugin/DataType/Email.php

View source
<?php

namespace Drupal\Core\TypedData\Plugin\DataType;

use Drupal\Core\TypedData\Type\StringInterface;

/**
 * The Email data type.
 *
 * The plain value of Email is the email address represented as PHP string.
 *
 * @DataType(
 *   id = "email",
 *   label = @Translation("Email"),
 *   constraints = {"Email" = {}}
 * )
 */
class Email extends StringData implements StringInterface {

}

Classes

Title Deprecated Summary
Email The Email data type.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.