You are here

interface ResourceDecoratorInterface in RESTful 7.2

Hierarchy

  • interface \Drupal\restful\Plugin\resource\ResourceInterface extends \Drupal\Component\Plugin\PluginInspectionInterface \Drupal\Component\Plugin\ConfigurablePluginInterface

Expanded class hierarchy of ResourceDecoratorInterface

All classes that implement ResourceDecoratorInterface

File

src/Plugin/resource/Decorators/ResourceDecoratorInterface.php, line 13
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorInterface.

Namespace

Drupal\restful\Plugin\resource\Decorators
View source
interface ResourceDecoratorInterface extends ResourceInterface {

  /**
   * Gets the decorated resource.
   *
   * @return ResourceInterface
   *   The underlying resource.
   */
  public function getDecoratedResource();

  /**
   * Gets the primary resource, the one that is not a decorator.
   *
   * @return ResourceInterface
   *   The resource.
   */
  public function getPrimaryResource();

}

Members

Namesort descending Modifiers Type Description Overrides
ResourceDecoratorInterface::getDecoratedResource public function Gets the decorated resource. 1
ResourceDecoratorInterface::getPrimaryResource public function Gets the primary resource, the one that is not a decorator. 1
ResourceInterface::access public function Determine if user can access the handler. 2
ResourceInterface::controllersInfo public function Gets the controllers. 2
ResourceInterface::create public function Basic implementation for create. 2
ResourceInterface::dataProviderFactory public function Data provider factory. 2
ResourceInterface::disable public function Disable the resource. 2
ResourceInterface::discover public function Discovery controller callback. 2
ResourceInterface::doDelete public function Shorthand method to perform a quick DELETE request. 2
ResourceInterface::doGet public function Shorthand method to perform a quick GET request. 2
ResourceInterface::doPatch public function Shorthand method to perform a quick PATCH request. 2
ResourceInterface::doPost public function Shorthand method to perform a quick POST request. 2
ResourceInterface::doPut public function Shorthand method to perform a quick PUT request. 2
ResourceInterface::enable public function Enable the resource. 2
ResourceInterface::getAccount public function Get the user from for request. 2
ResourceInterface::getControllerFromPath public function Return the controller for a given path. 2
ResourceInterface::getControllers public function Gets the controllers for this resource. 2
ResourceInterface::getDataProvider public function Gets the data provider. 2
ResourceInterface::getFieldDefinitions public function Gets the field definitions. 2
ResourceInterface::getPath public function Gets the path of the resource. 2
ResourceInterface::getRequest public function Get the request object. 2
ResourceInterface::getResourceMachineName public function Gets the resource machine name. 2
ResourceInterface::getResourceName public function Gets the resource name. 2
ResourceInterface::getUrl public function Helper method; Get the URL of the resource and query strings. 2
ResourceInterface::getVersion public function Return array keyed with the major and minor version of the resource. 2
ResourceInterface::IDS_SEPARATOR constant The string that separates multiple ids.
ResourceInterface::index public function Basic implementation for listing. 2
ResourceInterface::isEnabled public function Checks if the resource is enabled. 2
ResourceInterface::process public function Controller function that passes the data along and executes right action. 2
ResourceInterface::remove public function Basic implementation for update. 2
ResourceInterface::replace public function Basic implementation for update. 2
ResourceInterface::setAccount public function 2
ResourceInterface::setDataProvider public function Sets the data provider. 2
ResourceInterface::setFieldDefinitions public function Sets the field definitions. 2
ResourceInterface::setPath public function Sets the path of the resource. 2
ResourceInterface::setPluginDefinition public function Sets the plugin definition to the provided array. 2
ResourceInterface::setRequest public function Sets the request object. 2
ResourceInterface::switchUserBack public function Switches the user back from the original user for the session. 2
ResourceInterface::update public function Basic implementation for update. 2
ResourceInterface::versionedUrl public function Gets a resource URL based on the current version. 2
ResourceInterface::view public function Basic implementation for view. 2