/**
  * {@inheritdoc}
  */
 public function availableMethods()
 {
     $methods = parent::availableMethods();
     if ($this->isConfigEntityResource()) {
         // Currently only GET is supported for Config Entities.
         // @todo Remove when supported https://www.drupal.org/node/2300677
         $unsupported_methods = ['POST', 'PUT', 'DELETE', 'PATCH'];
         $methods = array_diff($methods, $unsupported_methods);
     }
     return $methods;
 }