You are here

function contact_rest_resource_alter in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}