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