summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/Plugin/DataType/Email.php
blob: ce1c6ad6d6daa45aca2b1bf7b4aa8f3341c0f19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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 {

}