Search for source

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.