function MenuActiveTrail::set
Sets cache data.
It depends on the specific case and implementation whether this has a permanent effect or if it just affects the current request.
Parameters
string $key: Key that identifies the data.
mixed $value: The data to be set.
Overrides CacheCollectorInterface::set
File
- 
              core/
lib/ Drupal/ Core/ ProxyClass/ Menu/ MenuActiveTrail.php, line 105  
Class
- MenuActiveTrail
 - Provides a proxy class for \Drupal\Core\Menu\MenuActiveTrail.
 
Namespace
Drupal\Core\ProxyClass\MenuCode
public function set($key, $value) {
  return $this->lazyLoadItself()
    ->set($key, $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.