You are here

public function DomainPathautoGenerator::deleteDomainPathPathautoState in Domain Path 8

Deletes the stored state.

Parameters

\Drupal\Core\Entity\EntityInterface $entity:

string $domain_id:

File

modules/domain_path_pathauto/src/DomainPathautoGenerator.php, line 201

Class

DomainPathautoGenerator
Provides methods for generating domain path aliases.

Namespace

Drupal\domain_path_pathauto

Code

public function deleteDomainPathPathautoState($entity, $domain_id) {
  $collection = $this
    ->getDomainPathPathautoStateCollection($entity, $domain_id);
  \Drupal::keyValue($collection)
    ->delete($entity
    ->id());
}