You are here

twitter_profile_widget.install in Twitter Profile Widget 8.2

Install file for twitter_profile_widget.

File

twitter_profile_widget.install
View source
<?php

/**
 * @file
 * Install file for twitter_profile_widget.
 */

/**
 * Implements hook_uninstall().
 *
 * @ingroup twitter_profile_widget
 */
function twitter_profile_widget_uninstall() {
  \Drupal::configFactory()
    ->getEditable('block_content.type.twitter_widget')
    ->delete();
  \Drupal::configFactory()
    ->getEditable('field.field.block_content.twitter_widget.field_twitter_profile_widget')
    ->delete();
  \Drupal::configFactory()
    ->getEditable('field.storage.block_content.field_twitter_profile_widget')
    ->delete();
  \Drupal::configFactory()
    ->getEditable('twitter_profile_widget.settings')
    ->delete();
}

Functions