function system_data_type_info

Implements hook_data_type_info().

File

drupal/core/modules/system/system.module, line 2020
Configuration system that lets administrators modify the workings of the site.

Code

function system_data_type_info() {
  return array(
    'boolean' => array(
      'label' => t('Boolean'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Boolean',
      'primitive type' => Primitive::BOOLEAN,
    ),
    'string' => array(
      'label' => t('String'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\String',
      'primitive type' => Primitive::STRING,
    ),
    'integer' => array(
      'label' => t('Integer'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Integer',
      'primitive type' => Primitive::INTEGER,
    ),
    'float' => array(
      'label' => t('Float'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Float',
      'primitive type' => Primitive::FLOAT,
    ),
    'date' => array(
      'label' => t('Date'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Date',
      'primitive type' => Primitive::DATE,
    ),
    'duration' => array(
      'label' => t('Duration'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Duration',
      'primitive type' => Primitive::DURATION,
    ),
    'uri' => array(
      'label' => t('URI'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Uri',
      'primitive type' => Primitive::URI,
    ),
    'binary' => array(
      'label' => t('Binary'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Binary',
      'primitive type' => Primitive::BINARY,
    ),
    'language' => array(
      'label' => t('Language'),
      'description' => t('A language object.'),
      'class' => '\\Drupal\\Core\\TypedData\\Type\\Language',
    ),
    'entity' => array(
      'label' => t('Entity'),
      'description' => t('All kind of entities, e.g. nodes, comments or users.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\EntityWrapper',
    ),
    'entity_translation' => array(
      'label' => t('Entity translation'),
      'description' => t('A translation of an entity'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\EntityTranslation',
    ),
    'boolean_field' => array(
      'label' => t('Boolean field item'),
      'description' => t('An entity field containing a boolean value.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\BooleanItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
    'string_field' => array(
      'label' => t('String field item'),
      'description' => t('An entity field containing a string value.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\StringItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
    'integer_field' => array(
      'label' => t('Integer field item'),
      'description' => t('An entity field containing an integer value.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\IntegerItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
    'date_field' => array(
      'label' => t('Date field item'),
      'description' => t('An entity field containing a date value.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\DateItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
    'language_field' => array(
      'label' => t('Language field item'),
      'description' => t('An entity field referencing a language.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\LanguageItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
    'entityreference_field' => array(
      'label' => t('Entity reference field item'),
      'description' => t('An entity field containing an entity reference.'),
      'class' => '\\Drupal\\Core\\Entity\\Field\\Type\\EntityReferenceItem',
      'list class' => '\\Drupal\\Core\\Entity\\Field\\Type\\Field',
    ),
  );
}