/** * {@inheritdoc} */ public function isResettable() { // The link can be reset if it has an override. return (bool) $this->staticOverride->loadOverride($this->getPluginId()); }
/** * {@inheritdoc} */ public function isResettable() { // The link can be reset if it has an override. // @todo This will be cacheable after https://www.drupal.org/node/2040135. return AccessResult::allowedIf($this->staticOverride->loadOverride($this->getPluginId()))->setCacheable(FALSE); }