You are here

function contact_rest_resource_alter in Drupal 8

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