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

Breadcrumb

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

function NodeHooks1::configurableLanguageDelete

Implements hook_ENTITY_TYPE_delete() for 'configurable_language'.

File

core/modules/node/src/Hook/NodeHooks1.php, line 507

Class

NodeHooks1
Hook implementations for node.

Namespace

Drupal\node\Hook

Code

public function configurableLanguageDelete(ConfigurableLanguageInterface $language) {
    // On nodes with this language, unset the language.
    \Drupal::entityTypeManager()->getStorage('node')
        ->clearRevisionsLanguage($language);
}

API Navigation

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