function TelephoneHooks::fieldFormatterInfoAlter

Implements hook_field_formatter_info_alter().

File

core/modules/telephone/src/Hook/TelephoneHooks.php, line 51

Class

TelephoneHooks
Hook implementations for telephone.

Namespace

Drupal\telephone\Hook

Code

public function fieldFormatterInfoAlter(&$info) : void {
    $info['string']['field_types'][] = 'telephone';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.