function hook_data_type_info_alter

Alter available data types for typed data wrappers.

Parameters

array $data_types: An array of data type information.

See also

hook_data_type_info()

Related topics

File

drupal/core/modules/system/system.api.php, line 204
Hooks provided by Drupal core and the System module.

Code

function hook_data_type_info_alter(&$data_types) {
  $data_types['email']['class'] = '\\Drupal\\mymodule\\Type\\Email';
}