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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.