function paragraph_blocks_entity_type_alter in Paragraph blocks 8
Same name and namespace in other branches
- 8.2 paragraph_blocks.module \paragraph_blocks_entity_type_alter()
- 3.x paragraph_blocks.module \paragraph_blocks_entity_type_alter()
Implements hook_entity_type_alter().
File
- ./
paragraph_blocks.module, line 101 - 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);
}