Skip to content
Snippets Groups Projects

Issue #3130107: Extend unit test coverage for LanguageNegotiationContentEntity

Open Stefanos Petrakis requested to merge issue/drupal-3130107:3130107-add-unit-test into 10.1.x
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
  • d94ebb30
    Issue #3174108 by _pratik_, asad_ahmed, rivimey, NivethaSubramaniyan,... · d94ebb30
    Alex Pott authored
    Issue #3174108 by _pratik_, asad_ahmed, rivimey, NivethaSubramaniyan, longwave: FieldableEntityNormalizerTrait::extractBundleData() has incorrect return type
@@ -82,14 +82,15 @@ protected function getEntityTypeDefinition($entity_type_id) {
* Denormalizes the bundle property so entity creation can use it.
*
* @param array $data
* The data being denormalized.
* The data being denormalized. The bundle information will be removed.
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type_definition
* The entity type definition.
*
* @throws \Symfony\Component\Serializer\Exception\UnexpectedValueException
* If the bundle value is invalid or the bundle type is ineligible.
*
* @return string
* The valid bundle name.
* @return array
* An array containing a single $bundle_key => $bundle_value pair.
*/
protected function extractBundleData(array &$data, EntityTypeInterface $entity_type_definition) {
$bundle_key = $entity_type_definition->getKey('bundle');
Loading