function BlockContent::delete

Overrides EntityBase::delete

File

core/modules/block_content/src/Entity/BlockContent.php, line 168

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

public function delete() {
    foreach ($this->getInstances() as $instance) {
        $instance->delete();
    }
    parent::delete();
}

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