Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageHooks.php

function LanguageHooks::entityBundleDelete

Implements hook_entity_bundle_delete().

File

core/modules/language/src/Hook/LanguageHooks.php, line 211

Class

LanguageHooks
Hook implementations for language.

Namespace

Drupal\language\Hook

Code

public function entityBundleDelete($entity_type_id, $bundle) {
    // Remove the content language settings associated with the bundle.
    $settings = ContentLanguageSettings::loadByEntityTypeBundle($entity_type_id, $bundle);
    if (!$settings->isNew()) {
        $settings->delete();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal