function noreferrer_update_8001 in No Referrer 8
The rel="noopener" and rel="noreferrer" link types can now be toggled.
File
- ./
noreferrer.install, line 11 - Update hooks for No Referrer module.
Code
function noreferrer_update_8001() {
\Drupal::configFactory()
->getEditable('noreferrer.settings')
->clear('link')
->set('noreferrer', TRUE)
->save();
}