Verified Commit 7af567b6 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3174108 by _pratik_, asad_ahmed, rivimey, NivethaSubramaniyan,...

Issue #3174108 by _pratik_, asad_ahmed, rivimey, NivethaSubramaniyan, longwave: FieldableEntityNormalizerTrait::extractBundleData() has incorrect return type

(cherry picked from commit 7ad6ad97)
parent c9f75473
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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');