W3cubDocs

/Drupal 8

function 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 1923
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';
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!core.api.php/function/hook_data_type_info_alter/8.1.x