hook_data_type_info_alter

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';
}
doc_Drupal
2016-10-29 09:17:53
Comments
Leave a Comment

Please login to continue.