Add new comment | Drupal 8

Add new comment

Ben (not verified)

Tue, 08/07/2018 - 22:30

Using Term::create() as shown above generates the error,

PHP Deprecated:  Automatically creating the first item for computed fields is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.0. Use \Drupal\Core\TypedData\ComputedItemListTrait instead.