You are here

public function RuleChainManager::setChain in ThemeKey 8

Overrides RuleChainManagerInterface::setChain

1 call to RuleChainManager::setChain()
RuleChainManager::rebuildChain in src/RuleChainManager.php

File

src/RuleChainManager.php, line 33
Contains OperatorManager.

Class

RuleChainManager
ThemeKey Rule Chain manager.

Namespace

Drupal\themekey

Code

public function setChain($chain) {
  $this
    ->ruleChainConfig()
    ->set('chain', $this
    ->sortChain($chain));
  $this
    ->ruleChainConfig()
    ->save();
}