function ResourceTypeBuildEvent::disableResourceType

Disables the resource type to be built.

File

core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php, line 98

Class

ResourceTypeBuildEvent
An event used to configure the construction of a JSON:API resource type.

Namespace

Drupal\jsonapi\ResourceType

Code

public function disableResourceType() {
  $this->disabled = TRUE;
}

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