hook_data_type_info_alter(&$data_types)
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
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/core.api.php, line 1938
- Documentation landing page and topics, plus core library hooks.
Code
function hook_data_type_info_alter(&$data_types) { $data_types['email']['class'] = '\Drupal\mymodule\Type\Email'; }
Please login to continue.