function ResourceTypeBuildEvent::resourceTypeShouldBeDisabled

Same name in other branches
  1. 9 core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php \Drupal\jsonapi\ResourceType\ResourceTypeBuildEvent::resourceTypeShouldBeDisabled()
  2. 8.9.x core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php \Drupal\jsonapi\ResourceType\ResourceTypeBuildEvent::resourceTypeShouldBeDisabled()
  3. 11.x core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php \Drupal\jsonapi\ResourceType\ResourceTypeBuildEvent::resourceTypeShouldBeDisabled()

Whether the resource type to be built should be disabled.

Return value

bool TRUE if the resource type should be disabled, FALSE otherwise.

File

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

Class

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

Namespace

Drupal\jsonapi\ResourceType

Code

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

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