You are here

function paragraphs_edit_entity_type_build in Paragraphs Edit 8.2

Same name and namespace in other branches
  1. 8 paragraphs_edit.module \paragraphs_edit_entity_type_build()

Implements hook_entity_type_build().

File

./paragraphs_edit.module, line 18
Allows users to edit, clone and delete paragraphs.

Code

function paragraphs_edit_entity_type_build(array &$entity_types) {
  $entity_types['paragraph']
    ->setFormClass('entity_edit', ParagraphEditForm::class);
  $entity_types['paragraph']
    ->setFormClass('entity_clone', ParagraphCloneForm::class);
  $entity_types['paragraph']
    ->setFormClass('entity_delete', ParagraphDeleteForm::class);
}