You are here

noreferrer.install in No Referrer 8

Same filename and directory in other branches
  1. 7 noreferrer.install

Update hooks for No Referrer module.

File

noreferrer.install
View 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

Namesort descending Description
noreferrer_update_8001 The rel="noopener" and rel="noreferrer" link types can now be toggled.