Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.x-5.0-rc17
Description: 

Introduction of WebformCompositeFormElementTrait includes a new pre render for class WebformCompositeBase. New custom webform composite classes which require using a pre render method, should use the new method preRenderWebformCompositeFormElement.

Existing webform composite classes which use the original pre render method preRenderCompositeFormElement, may not function as expected and instead should convert to calling the new method.

Example from:

public static function preRenderCompositeFormElement($element) {
    $element = parent::preRenderCompositeFormElement($element);
    .
    .
   return $element;
}

Convert to:

public static function preRenderWebformCompositeFormElement($element) {
    $element = parent::preRenderWebformCompositeFormElement($element);
    .
    .
   return $element;
}

Where existing classes do not directly extend the WebformCompositeBase, add the new trait using:

use Drupal\webform\Element\WebformCompositeFormElementTrait;

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done