function contact_rest_resource_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/contact.module \contact_rest_resource_alter()
- 9 core/modules/contact/contact.module \contact_rest_resource_alter()
Implements hook_rest_resource_alter().
File
- core/
modules/ contact/ contact.module, line 248 - Enables the use of personal and site-wide contact forms.
Code
function contact_rest_resource_alter(&$definitions) {
$definitions['entity:contact_message']['class'] = ContactMessageResource::class;
}