function contact_rest_resource_alter

Same name in other branches
  1. 8.9.x core/modules/contact/contact.module \contact_rest_resource_alter()
  2. 10 core/modules/contact/contact.module \contact_rest_resource_alter()

Implements hook_rest_resource_alter().

File

core/modules/contact/contact.module, line 248

Code

function contact_rest_resource_alter(&$definitions) {
    $definitions['entity:contact_message']['class'] = ContactMessageResource::class;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.