Commit 0b551a00 authored by Dries's avatar Dries
Browse files

Issue #1936924 by chx: Typo fixes in system.api.php.

parent 94df79fb
......@@ -162,7 +162,7 @@ function hook_cron() {
* - primitive type: (optional) Maps the data type to one of the pre-defined
* primitive types in \Drupal\Core\TypedData\Primitive. If set, it must be
* a constant defined by \Drupal\Core\TypedData\Primitive such as
* \Drupal\Core\TypedData\Primitive::String.
* \Drupal\Core\TypedData\Primitive::STRING.
* - constraints: An array of validation constraints for this type. See
* \Drupal\Core\TypedData\TypedDataManager::getConstraints() for details.
*
......@@ -175,7 +175,7 @@ function hook_data_type_info() {
'email' => array(
'label' => t('Email'),
'class' => '\Drupal\email\Type\Email',
'primitive type' => \Drupal\Core\TypedData\Primitive::String,
'primitive type' => \Drupal\Core\TypedData\Primitive::STRING,
'constraints' => array('Email' => array()),
),
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment