You are here

public function AliasStorageHelper::deleteBySourcePrefix in Pathauto 8

Delete all aliases by source url.

Parameters

string $source: An internal Drupal path.

Return value

bool The URL alias source.

Overrides AliasStorageHelperInterface::deleteBySourcePrefix

1 call to AliasStorageHelper::deleteBySourcePrefix()
AliasStorageHelper::deleteEntityPathAll in src/AliasStorageHelper.php
Delete an entity URL alias and any of its sub-paths.

File

src/AliasStorageHelper.php, line 179

Class

AliasStorageHelper
Provides helper methods for accessing alias storage.

Namespace

Drupal\pathauto

Code

public function deleteBySourcePrefix($source) {
  $pids = $this
    ->loadBySourcePrefix($source);
  if ($pids) {
    $this
      ->deleteMultiple($pids);
  }
}