noreferrer.install in No Referrer 8
Same filename and directory in other branches
Update hooks for No Referrer module.
File
noreferrer.installView source
<?php
/**
* @file
* Update hooks for No Referrer module.
*/
/**
* The rel="noopener" and rel="noreferrer" link types can now be toggled.
*/
function noreferrer_update_8001() {
\Drupal::configFactory()
->getEditable('noreferrer.settings')
->clear('link')
->set('noreferrer', TRUE)
->save();
}
Functions
Name | Description |
---|---|
noreferrer_update_8001 | The rel="noopener" and rel="noreferrer" link types can now be toggled. |