Block Plugin Derivatives Discovery
Copied from BlockContent::postSave():

// Invalidate the block cache to update custom block-based derivatives.
\Drupal::service('plugin.manager.block')-&gt;clearCachedDefinitions();