Sets value in this theme settings object.
string $key: Identifier to store value in theme settings.
string $value: Value to associate with identifier.
\Drupal\Core\Theme\ThemeSettings The theme settings object.
public function set($key, $value) {
// The dot/period is a reserved character; it may appear between keys, but
// not within keys.
$parts = explode('.', $key);
if (count($parts) == 1) {
$this->data[$key] = $value;
}
else {
NestedArray::setValue($this->data, $parts, $value);
}
return $this;
}