You are here

public function DomainPathautoGenerator::setDomainPathPathautoState in Domain Path 8

Set the stored state.

Parameters

\Drupal\Core\Entity\EntityInterface $entity:

string $domain_id:

File

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

Class

DomainPathautoGenerator
Provides methods for generating domain path aliases.

Namespace

Drupal\domain_path_pathauto

Code

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