You are here

function paragraph_blocks_entity_type_alter in Paragraph blocks 8.2

Same name and namespace in other branches
  1. 8 paragraph_blocks.module \paragraph_blocks_entity_type_alter()
  2. 3.x paragraph_blocks.module \paragraph_blocks_entity_type_alter()

Implements hook_entity_type_alter().

File

./paragraph_blocks.module, line 112
Contains paragraph_blocks.module.

Code

function paragraph_blocks_entity_type_alter(&$entity_types) {

  // @todo: Allow multiple modules to override this class (with reflection)?

  /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
  $entity_types['paragraph']
    ->setClass(ParagraphBlocksEntity::class);
}