Search for source
- Search 7.x for source
- Search 8.9.x for source
- Search 10.3.x for source
- Search 11.x for source
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
EntityResource::permissions | function | core/ |
Implements ResourceInterface::permissions(). |
EntityResource::post | function | core/ |
Responds to entity POST requests and saves the new entity. |
EntityResource::__construct | function | core/ |
Constructs a Drupal\rest\Plugin\rest\resource\EntityResource object. |
EntityResourceAccessTrait | trait | core/ |
@internal @todo Consider making public in https://www.drupal.org/node/2300677 |
EntityResourceAccessTrait.php | file | core/ |
|
EntityResourceAccessTrait::checkEditFieldAccess | function | core/ |
Performs edit access checks for fields. |
EntityResourceHalTestCoverageTest | class | core/ |
Checks that all core content/config entity types have HAL test coverage. |
EntityResourceHalTestCoverageTest.php | file | core/ |
|
EntityResourceHalTestCoverageTest::$definitions | property | core/ |
Entity definitions array. |
EntityResourceHalTestCoverageTest::$modules | property | core/ |
Modules to enable. |
EntityResourceHalTestCoverageTest::setUp | function | core/ |
|
EntityResourceHalTestCoverageTest::testEntityTypeHalTestCoverage | function | core/ |
Tests that all core content/config entity types have HAL test coverage. |
EntityResourcePostRouteSubscriber | class | core/ |
Generates a 'create' route for an entity type if it has a REST POST route. |
EntityResourcePostRouteSubscriber.php | file | core/ |
|
EntityResourcePostRouteSubscriber::$resourceConfigStorage | property | core/ |
The REST resource config storage. |
EntityResourcePostRouteSubscriber::getSubscribedEvents | function | core/ |
|
EntityResourcePostRouteSubscriber::onDynamicRouteEvent | function | core/ |
Provides routes on route rebuild time. |
EntityResourcePostRouteSubscriber::__construct | function | core/ |
Constructs a new EntityResourcePostRouteSubscriber instance. |
EntityResourceRestTestCoverageTest | class | core/ |
Checks that all core content/config entity types have REST test coverage. |
EntityResourceRestTestCoverageTest.php | file | core/ |
|
EntityResourceRestTestCoverageTest::$definitions | property | core/ |
Entity definitions array. |
EntityResourceRestTestCoverageTest::$modules | property | core/ |
Modules to enable. |
EntityResourceRestTestCoverageTest::setUp | function | core/ |
|
EntityResourceRestTestCoverageTest::testEntityTypeRestTestCoverage | function | core/ |
Tests that all core content/config entity types have REST test coverage. |
EntityResourceTestBase | class | core/ |
Defines a base class for testing all entity resources. |
EntityResourceTestBase.php | file | core/ |
|
EntityResourceTestBase::$anotherEntity | property | core/ |
Another entity of the same type used for testing. |
EntityResourceTestBase::$entity | property | core/ |
The main entity used for testing. |
EntityResourceTestBase::$entityStorage | property | core/ |
The entity storage. |
EntityResourceTestBase::$entityTypeId | property | core/ |
The tested entity type. |
EntityResourceTestBase::$firstCreatedEntityId | property | core/ |
The entity ID for the first created entity in testPost(). |
EntityResourceTestBase::$labelFieldName | property | core/ |
Optionally specify which field is the 'label' field. |
EntityResourceTestBase::$modules | property | core/ |
Modules to install. |
EntityResourceTestBase::$patchProtectedFieldNames | property | core/ |
The fields that are protected against modification during PATCH requests. |
EntityResourceTestBase::$secondCreatedEntityId | property | core/ |
The entity ID for the second created entity in testPost(). |
EntityResourceTestBase::$uniqueFieldNames | property | core/ |
A list of fields that need a unique value. |
EntityResourceTestBase::assert406Response | function | core/ |
Asserts a 406 response… or in some cases a 403 response, because weirdness. |
EntityResourceTestBase::assertEntityArraySubset | function | core/ |
Recursively asserts that the expected items are set in the tested entity. |
EntityResourceTestBase::assertNormalizationEdgeCases | function | core/ |
Asserts normalization-specific edge cases. |
EntityResourceTestBase::assertPatchProtectedFieldNamesStructure | function | core/ |
Asserts structure of $patchProtectedFieldNames. |
EntityResourceTestBase::assertResourceNotAvailable | function | core/ |
Asserts that a resource is unavailable: 404, 406 if it has canonical route. |
EntityResourceTestBase::assertStoredEntityMatchesSentNormalization | function | core/ |
Asserts that the stored entity matches the sent normalization. |
EntityResourceTestBase::castToString | function | core/ |
Transforms a normalization: casts all non-string types to strings. |
EntityResourceTestBase::createAnotherEntity | function | core/ |
Creates another entity to be tested. |
EntityResourceTestBase::createEntity | function | core/ |
Creates the entity to be tested. |
EntityResourceTestBase::getEntityResourcePostUrl | function | core/ |
Gets an entity resource's POST URL. |
EntityResourceTestBase::getEntityResourceUrl | function | core/ |
Gets an entity resource's GET/PATCH/DELETE URL. |
EntityResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
EntityResourceTestBase::getExpectedCacheTags | function | core/ |
The expected cache tags for the GET/HEAD response of the test entity. |
EntityResourceTestBase::getExpectedNormalizedEntity | function | core/ |
Returns the expected normalization of the entity. |
Pagination
- Previous page
- Page 6
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.