You are here

public function SiteContext::__construct in Rules 8.3

Constructs a new SiteContext.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config.factory service.

File

src/ContextProvider/SiteContext.php, line 39

Class

SiteContext
Sets the current node as a context on node routes.

Namespace

Drupal\rules\ContextProvider

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->systemSiteConfig = $config_factory
    ->get('system.site');
}