public function removeAll() {
    $storage = $this->entityTypeManager->getStorage('openy_pef_gxp_mapping');

    $query = $storage->getQuery('openy_pef_gxp_mapping');
    $ids = $query->execute();
    if (!$ids) {
      return;
    }

    $this->removeByChunk($ids);
  }
public function removeAll() {
    $storage = $this->entityTypeManager->getStorage('openy_pef_gxp_mapping');

    $query = $storage->getQuery('openy_pef_gxp_mapping');
    $ids = $query->execute();
    if (!$ids) {
      return;
    }

    $this->removeByChunk($ids);
  }
public function removeAll ( ) { $ storage = $ this -> entityTypeManager -> getStorage ( 'openy_pef_gxp_mapping' ) ; $ query = $ storage -> getQuery ( 'openy_pef_gxp_mapping' ) ; $ ids = $ query -> execute ( ) ; if ( ! $ ids ) { return ; } $ this -> removeByChunk ( $ ids ) ; }
Remove all mappings.

Also removes referenced sessions.

@throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
@throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
@throws \Drupal\Core\Entity\EntityStorageException
Remove all mappings .