Skip to main content
Home
Drupal API Help
Helping Drupal Community, One API at a time

Main menu

  • Home
  • Drupal Core
  • Getting Help

You are here

Home » API reference » Twitter Profile Widget 8

twitter_profile_widget.install in Twitter Profile Widget 8

Same filename and directory in other branches
  1. 8.2 twitter_profile_widget.install
  2. 6 twitter_profile_widget.install
  3. 7 twitter_profile_widget.install
  4. 3.x twitter_profile_widget.install

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('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();
}

Functions

Namesort descending Description
twitter_profile_widget_uninstall Implements hook_uninstall().

API Navigation

  • Twitter Profile Widget 8
  • Classes
  • Functions
  • Files
  • Namespaces
  • Services

Drupal is a registered trademark of Dries Buytaert. This site is not affiliated with Dries Buytaert, Drupal Association or Drupal.org.