Mercurial > hg > isophonics-drupal-site
view core/modules/rest/src/RestResourceConfigInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\rest; use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Entity\EntityWithPluginCollectionInterface; /** * Defines a configuration entity to store enabled REST resources. */ interface RestResourceConfigInterface extends ConfigEntityInterface, EntityWithPluginCollectionInterface { /** * Granularity value for per-method configuration. */ const METHOD_GRANULARITY = 'method'; /** * Granularity value for per-resource configuration. */ const RESOURCE_GRANULARITY = 'resource'; /** * Retrieves the REST resource plugin. * * @return \Drupal\rest\Plugin\ResourceInterface * The resource plugin */ public function getResourcePlugin(); /** * Retrieves a list of supported HTTP methods. * * @return string[] * A list of supported HTTP methods. */ public function getMethods(); /** * Retrieves a list of supported authentication providers. * * @param string $method * The request method e.g GET or POST. * * @return string[] * A list of supported authentication provider IDs. */ public function getAuthenticationProviders($method); /** * Retrieves a list of supported response formats. * * @param string $method * The request method e.g GET or POST. * * @return string[] * A list of supported format IDs. */ public function getFormats($method); }