private function removeByChunk(array $ids) {
    $storage = $this->entityTypeManager->getStorage('openy_pef_gxp_mapping');
    $chunks = array_chunk($ids, self::CHUNK_DELETE);

    foreach ($chunks as $chunk) {
      $entities = $storage->loadMultiple($chunk);
      $storage->delete($entities);
      $this->loggerChannel->debug(
        'Chunk of %chunk openy_pef_gxp_mapping entities has been deleted.',
        ['%chunk' => count($chunk)]
      );
    }
  }
private function removeByChunk(array $ids) {
    $storage = $this->entityTypeManager->getStorage('openy_pef_gxp_mapping');
    $chunks = array_chunk($ids, self::CHUNK_DELETE);

    foreach ($chunks as $chunk) {
      $entities = $storage->loadMultiple($chunk);
      $storage->delete($entities);
      $this->loggerChannel->debug(
        'Chunk of %chunk openy_pef_gxp_mapping entities has been deleted.',
        ['%chunk' => count($chunk)]
      );
    }
  }
private function removeByChunk ( array $ ids ) { $ storage = $ this -> entityTypeManager -> getStorage ( 'openy_pef_gxp_mapping' ) ; $ chunks = array_chunk ( $ ids , self :: CHUNK_DELETE ) ; foreach ( $ chunks as $ chunk ) { $ entities = $ storage -> loadMultiple ( $ chunk ) ; $ storage -> delete ( $ entities ) ; $ this -> loggerChannel -> debug ( 'Chunk of %chunk openy_pef_gxp_mapping entities has been deleted.' , [ '%chunk' => count ( $ chunk ) ] ) ; } }
Remove entities by ID.

@param array $ids
Entity IDs.

@throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
@throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
@throws \Drupal\Core\Entity\EntityStorageException
Remove entities by ID .