You are here

public function ResourceType::isLocatable in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::isLocatable()
  2. 9 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;
}