function ContactMessageResource::availableMethods

Same name in other branches
  1. 9 core/modules/contact/src/Plugin/rest/resource/ContactMessageResource.php \Drupal\contact\Plugin\rest\resource\ContactMessageResource::availableMethods()
  2. 8.9.x core/modules/contact/src/Plugin/rest/resource/ContactMessageResource.php \Drupal\contact\Plugin\rest\resource\ContactMessageResource::availableMethods()
  3. 10 core/modules/contact/src/Plugin/rest/resource/ContactMessageResource.php \Drupal\contact\Plugin\rest\resource\ContactMessageResource::availableMethods()

Overrides EntityResource::availableMethods

File

core/modules/contact/src/Plugin/rest/resource/ContactMessageResource.php, line 21

Class

ContactMessageResource
Customizes the entity REST Resource plugin for Contact's Message entities.

Namespace

Drupal\contact\Plugin\rest\resource

Code

public function availableMethods() {
    return [
        'POST',
    ];
}

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