You are here

public function PathautoState::purge in Pathauto 8

Deletes the stored state.

File

src/PathautoState.php, line 111

Class

PathautoState
A property that stores in keyvalue whether an entity should receive an alias.

Namespace

Drupal\pathauto

Code

public function purge() {
  \Drupal::keyValue($this
    ->getCollection())
    ->delete(static::getPathautoStateKey($this->parent
    ->getEntity()
    ->id()));
}