Skip to content
Snippets Groups Projects
Select Git revision
  • 11.x
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
40 results

ViewsPager.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    RestResourceConfigInterface.php 1.38 KiB
    <?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);
    
    }