Frontend\Core\Engine\Base\Block::addJSData PHP Method

addJSData() public method

Add data that should be available in JS
public addJSData ( string $key, mixed $value )
$key string The key whereunder the value will be stored.
$value mixed The value to pass.
    public function addJSData($key, $value)
    {
        $this->header->addJsData($this->getModule(), $key, $value);
    }