diff --git a/src/ResourceType/ConfigurableResourceType.php b/src/ResourceType/ConfigurableResourceType.php index d19d74b..9b43d56 100644 --- a/src/ResourceType/ConfigurableResourceType.php +++ b/src/ResourceType/ConfigurableResourceType.php @@ -111,24 +111,6 @@ class ConfigurableResourceType extends ResourceType { ->get('include_count'); } - /** - * @inheritdoc - * - * This is only needed because there is a mismatch on how JSON API and JSON - * API Extras handle disabled resources. JSON API will keep the resource type - * and have it marked as internal. JSON API Extras will return NULL for that - * resource type instead. - */ - public function setRelatableResourceTypes(array $relatable_resource_types) { - // For each relationship remove the disabled resources since they are null. - $relatable_resource_types = array_map(function ($items) { - return array_filter($items); - }, $relatable_resource_types); - // Remove the relationships that don't have any enabled resource in them. - $relatable_resource_types = array_filter($relatable_resource_types); - parent::setRelatableResourceTypes($relatable_resource_types); - } - /** * Get the resource field configuration. *