function hook_field_info_alter

Any module can override the default field processor and register its own class for a given field type in hook_field_info_alter() using the tmgmt_field_processor key.

The class must implement \Drupal\tmgmt_content\FieldProcessorInterface.

See also

\Drupal\tmgmt_content\DefaultFieldProcessor

Related topics

1 function implements hook_field_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

tmgmt_content_field_info_alter in sources/content/tmgmt_content.module
Implements hook_field_info_alter().

File

sources/content/tmgmt_content.api.php, line 46
Hooks provided by the content entity source module.

Code

function hook_field_info_alter(&$info) {
  $info['metatag']['tmgmt_field_processor_class'] = '\\Drupal\\Acme\\MetatagFieldProcessor';
}