function ContactHooks::restResourceAlter
Implements hook_rest_resource_alter().
File
-
core/
modules/ contact/ src/ Hook/ ContactHooks.php, line 225
Class
- ContactHooks
- Hook implementations for contact.
Namespace
Drupal\contact\HookCode
public function restResourceAlter(&$definitions) : void {
$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.