function amp_update_8001 in Accelerated Mobile Pages (AMP) 8
Same name and namespace in other branches
- 8.3 amp.install \amp_update_8001()
- 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();
}