Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.x #12

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

9.x #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"role": "Maintainer"
}
],
"require": {}
"require": {
"php": ">=7.3",
"drupal/core": "^8 || ^9"
}
}
2 changes: 1 addition & 1 deletion rest_normalizations.info.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Rest Normalizations
type: module
description: Hoppinger Normalizations for the REST API
core: 8.x
core_version_requirement: ^8 || ^9
package: Hoppinger
dependencies:
- serialization
25 changes: 18 additions & 7 deletions rest_normalizations.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ services:
rest_normalizations.normalizer.entity_reference_field_item_target:
class: Drupal\rest_normalizations\Normalizer\EntityReferenceFieldItemTargetNormalizer
tags:
- { name: normalizer, priority: 25 }
- { name: normalizer, priority: 30 }
arguments: ['@language_manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.normalizer.image_entity:
class: Drupal\rest_normalizations\Normalizer\ImageNormalizer
tags:
- { name: normalizer, priority: 5 }
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '%rest_normalizations.content_entity_operations_exclude%']
class: Drupal\rest_normalizations\Normalizer\ImageNormalizer
tags:
- { name: normalizer, priority: 5 }
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '%rest_normalizations.content_entity_operations_exclude%']
rest_normalizations.normalizer.entity_reference_field_item_field_target:
class: Drupal\rest_normalizations\Normalizer\EntityReferenceFieldItemFieldTargetNormalizer
tags:
- { name: normalizer, priority: 25 }
arguments: ['@language_manager', '%rest_normalizations.field_target_identifiers%']

rest_normalizations.ts_generator_component.entity_file:
class: Drupal\rest_normalizations\ComponentGenerator\FileGenerator
Expand Down Expand Up @@ -71,18 +76,24 @@ services:
rest_normalizations.ts_generator_component.field.entity_reference_target:
class: Drupal\rest_normalizations\ComponentGenerator\EntityReferenceTargetFieldGenerator
tags:
- { name: ts_generator_component, priority: 21 }
- { name: ts_generator_component, priority: 22 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.ts_generator_component.field.file:
class: Drupal\rest_normalizations\ComponentGenerator\FileFieldGenerator
tags:
- { name: ts_generator_component, priority: 22 }
- { name: ts_generator_component, priority: 23 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '%rest_normalizations.target_identifiers%']
rest_normalizations.ts_generator_component.field.entity_reference_target_field:
class: Drupal\rest_normalizations\ComponentGenerator\EntityReferenceTargetFieldFieldGenerator
tags:
- { name: ts_generator_component, priority: 21 }
arguments: ['@plugin.manager.field.field_type', '@entity_type.manager', '@entity_field.manager', '%rest_normalizations.field_target_identifiers%']

parameters:
rest_normalizations.target_identifiers:
- media
- file
- paragraph
rest_normalizations.field_target_identifiers: {}
rest_normalizations.content_entity_operations_exclude:
- commerce_product_variation
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Rest Normalizations Video Embed Field
type: module
description: Hoppinger Normalizations for the REST API for Video Embed Field
core: 8.x
core_version_requirement: ^8 || ^9
package: Hoppinger
dependencies:
- rest_normalizations
Expand Down
Loading