function EntityResource::isConfigEntityResource

Same name in other branches
  1. 8.9.x core/modules/rest/src/Plugin/rest/resource/EntityResource.php \Drupal\rest\Plugin\rest\resource\EntityResource::isConfigEntityResource()
  2. 10 core/modules/rest/src/Plugin/rest/resource/EntityResource.php \Drupal\rest\Plugin\rest\resource\EntityResource::isConfigEntityResource()
  3. 11.x core/modules/rest/src/Plugin/rest/resource/EntityResource.php \Drupal\rest\Plugin\rest\resource\EntityResource::isConfigEntityResource()

Checks if this resource is for a Config Entity.

Return value

bool TRUE if the entity is a Config Entity, FALSE otherwise.

1 call to EntityResource::isConfigEntityResource()
EntityResource::availableMethods in core/modules/rest/src/Plugin/rest/resource/EntityResource.php
Returns the available HTTP request methods on this plugin.

File

core/modules/rest/src/Plugin/rest/resource/EntityResource.php, line 418

Class

EntityResource
Represents entities as resources.

Namespace

Drupal\rest\Plugin\rest\resource

Code

protected function isConfigEntityResource() {
    return $this->entityType instanceof ConfigEntityType;
}

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