Unsets value in this theme settings object.
string $key: Name of the key whose value should be unset.
\Drupal\Core\Theme\ThemeSettings The theme settings object.
public function clear($key) {
$parts = explode('.', $key);
if (count($parts) == 1) {
unset($this->data[$key]);
}
else {
NestedArray::unsetValue($this->data, $parts);
}
return $this;
}