public function EntityResource::get in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/rest/resource/EntityResource.php \Drupal\cms_content_sync\Plugin\rest\resource\EntityResource::get()
- 2.0.x src/Plugin/rest/resource/EntityResource.php \Drupal\cms_content_sync\Plugin\rest\resource\EntityResource::get()
Responds to entity GET requests.
Parameters
string $entity_type: The name of an entity type
string $entity_bundle: The name of an entity bundle
string $entity_uuid: The uuid of an entity
Return value
\Symfony\Component\HttpFoundation\Response A list of entities of the given type and bundle
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\cms_content_sync\Exception\SyncException
File
- src/
Plugin/ rest/ resource/ EntityResource.php, line 193
Class
- EntityResource
- Provides entity interfaces for Content Sync, allowing Sync Core to request and manipulate entities.
Namespace
Drupal\cms_content_sync\Plugin\rest\resourceCode
public function get($entity_type, $entity_bundle, $entity_uuid) {
return new ResourceResponse([
'message' => t(self::TYPE_HAS_NOT_BEEN_FOUND)
->render(),
], self::CODE_NOT_FOUND);
}