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

Breadcrumb

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

function LayoutBuilderHooks::entityDelete

Implements hook_entity_delete().

File

core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php, line 207

Class

LayoutBuilderHooks
Hook implementations for layout_builder.

Namespace

Drupal\layout_builder\Hook

Code

public function entityDelete(EntityInterface $entity) {
    if (\Drupal::moduleHandler()->moduleExists('block_content')) {
        
        /** @var \Drupal\layout_builder\InlineBlockEntityOperations $entity_operations */
        $entity_operations = \Drupal::classResolver(InlineBlockEntityOperations::class);
        $entity_operations->handleEntityDelete($entity);
    }
}

API Navigation

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