function twitter_profile_widget_uninstall in Twitter Profile Widget 8
Same name and namespace in other branches
- 8.2 twitter_profile_widget.install \twitter_profile_widget_uninstall()
- 6 twitter_profile_widget.install \twitter_profile_widget_uninstall()
- 7 twitter_profile_widget.install \twitter_profile_widget_uninstall()
- 3.x twitter_profile_widget.install \twitter_profile_widget_uninstall()
Implements hook_uninstall().
File
- ./
twitter_profile_widget.install, line 13 - Install file for twitter_profile_widget.
Code
function twitter_profile_widget_uninstall() {
\Drupal::configFactory()
->getEditable('block_content.type.twitter_widget')
->delete();
\Drupal::configFactory()
->getEditable('core.entity_form_display.block_content.twitter_widget.default')
->delete();
\Drupal::configFactory()
->getEditable('core.entity_view_display.block_content.twitter_widget.default')
->delete();
\Drupal::configFactory()
->getEditable('field.field.block_content.twitter_widget.field_twitter_widget')
->delete();
\Drupal::configFactory()
->getEditable('field.storage.block_content.field_twitter_widget')
->delete();
\Drupal::configFactory()
->getEditable('twitter_profile_widget.settings')
->delete();
}