function TelephoneHooks::fieldFormatterInfoAlter

Same name and namespace in other branches
  1. 11.x core/modules/telephone/src/Hook/TelephoneHooks.php \Drupal\telephone\Hook\TelephoneHooks::fieldFormatterInfoAlter()

Implements hook_field_formatter_info_alter().

Attributes

#[Hook('field_formatter_info_alter')]

File

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

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.