You are here

function amp_update_8001 in Accelerated Mobile Pages (AMP) 8

Same name and namespace in other branches
  1. 8.3 amp.install \amp_update_8001()
  2. 8.2 amp.install \amp_update_8001()

Remove node_types from amp.settings.

File

./amp.install, line 54

Code

function amp_update_8001(&$sandbox) {
  $config = \Drupal::service('config.factory')
    ->getEditable('amp.settings');
  $config
    ->clear('node_types')
    ->save();
}