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::respondWithCollection function core/modules/jsonapi/src/Controller/EntityResource.php Respond with an entity collection.
EntityResource::updateEntityField function core/modules/jsonapi/src/Controller/EntityResource.php Takes a field from the origin entity and puts it to the destination entity.
EntityResource::__construct function core/modules/jsonapi/src/Controller/EntityResource.php Instantiates an EntityResource object.
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.
EntityResourceTest class core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php @coversDefaultClass \Drupal\jsonapi\Controller\EntityResource
@group jsonapi
EntityResourceTest.php file core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php
EntityResourceTest::$entityResource property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php The EntityResource under test.
EntityResourceTest::$modules property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php Modules to enable.
EntityResourceTest::$node property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php The node.
EntityResourceTest::$node2 property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php The other node.
EntityResourceTest::$node3 property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php An unpublished node.
EntityResourceTest::$node4 property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php A node with related nodes.
EntityResourceTest::$nodeUuid property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php Static UUIDs to use in testing.
EntityResourceTest::$request property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php A fake request.
EntityResourceTest::$user property core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php The user.
EntityResourceTest::createEntityResource function core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php Creates an instance of the subject under test.
EntityResourceTest::setUp function core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php
EntityResourceTest::testGetEmptyCollection function core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php @covers ::getCollection
EntityResourceTest::testGetPagedCollection function core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php @covers ::getCollection
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.

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