You are here

public function ResourceDecoratorBase::create in RESTful 7.2

Basic implementation for create.

Parameters

string $path: The resource path.

Return value

array An array of structured data for the thing that was created.

Overrides ResourceInterface::create

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 184
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function create($path) {
  return $this->subject
    ->create($path);
}