function ResourceType::isLocatable

Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::isLocatable()
  2. 10 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::isLocatable()
  3. 11.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::isLocatable()

Whether resources of this resource type are locatable.

A resource type may for example not be locatable when it is not stored.

Return value

bool TRUE if the resource type's resources are locatable. FALSE otherwise.

File

core/modules/jsonapi/src/ResourceType/ResourceType.php, line 302

Class

ResourceType
Value object containing all metadata for a JSON:API resource type.

Namespace

Drupal\jsonapi\ResourceType

Code

public function isLocatable() {
    return $this->isLocatable;
}

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