Storage ::delete method requires an array of entities

Created on 31 October 2019, over 4 years ago
Updated 25 January 2023, over 1 year ago

In the message class, the deleteMultiple method is defined as following

  /**
   * {@inheritdoc}
   */
  public static function deleteMultiple(array $ids) {
    \Drupal::entityTypeManager()->getStorage('message')->delete($ids);
  }

The method fails because the ::delete method requires an array of entities and not an array of IDs.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece idimopoulos

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024