public function MultiversionFieldItemList::delete in Multiversion 8
Same name and namespace in other branches
- 8.2 src/MultiversionFieldItemList.php \Drupal\multiversion\MultiversionFieldItemList::delete()
@inheritDoc
Overrides PathFieldItemList::delete
File
- src/
MultiversionFieldItemList.php, line 12
Class
Namespace
Drupal\multiversionCode
public function delete() {
\Drupal::service('pathauto.alias_storage_helper')
->deleteEntityPathAll($this
->getEntity());
if ($first = $this
->first()) {
$first
->get('pathauto')
->purge();
}
}