Skip to content
Snippets Groups Projects
Commit ba657d7d authored by Björn Brala's avatar Björn Brala
Browse files

Add todo to remove code when drupal 8 support is dropped

parent 58b538fd
Branches
Tags
No related merge requests found
......@@ -300,6 +300,8 @@ class ConfigurableResourceTypeRepository extends ResourceTypeRepository {
/**
* {@inheritdoc}
*
* @todo Remove this code when Drupal 8 support is dropped
*/
protected function getRelatableResourceTypesFromFieldDefinition(FieldDefinitionInterface $field_definition, array $resource_types) {
$item_definition = $field_definition->getItemDefinition();
......@@ -338,6 +340,8 @@ class ConfigurableResourceTypeRepository extends ResourceTypeRepository {
/**
* {@inheritdoc}
*
* @todo Remove this code when Drupal 8 support is dropped
*/
protected function getAllBundlesForEntityType($entity_type_id) {
// Ensure all keys are strings, because numeric values are allowed
......@@ -357,6 +361,8 @@ class ConfigurableResourceTypeRepository extends ResourceTypeRepository {
*
* @return \Drupal\jsonapi\ResourceType\ResourceType|null
* The resource type or NULL if it cannot be found.
*
* @todo Remove this code when Drupal 8 support is dropped
*/
protected static function lookupResourceType(array $resource_types, $entity_type_id, $bundle) {
if (isset($resource_types["$entity_type_id--$bundle"])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment