Change record status: 
Project: 
Introduced in branch: 
11.1.x
Introduced in version: 
11.1.0
Description: 

A last() method was added to the (\Drupal\Core\TypedData\Plugin\DataType\ItemList) class.
This method simplifies access to the last item in a list by returning the element at the final index.

This change introduces a new method in the ItemList class, enabling developers to easily access the last element in a list.

Impacts: 
Module developers