X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FForm%2FParagraphsTypeDeleteConfirm.php;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FForm%2FParagraphsTypeDeleteConfirm.php;h=0000000000000000000000000000000000000000;hp=f3749e2c4bce99f74349a044a2b4db8d4277d2c5;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/paragraphs/src/Form/ParagraphsTypeDeleteConfirm.php b/web/modules/contrib/paragraphs/src/Form/ParagraphsTypeDeleteConfirm.php deleted file mode 100644 index f3749e2c4..000000000 --- a/web/modules/contrib/paragraphs/src/Form/ParagraphsTypeDeleteConfirm.php +++ /dev/null @@ -1,31 +0,0 @@ -entityTypeManager->getStorage('paragraph')->getQuery() - ->condition('type', $this->entity->id()) - ->count() - ->execute(); - if ($num_paragraphs) { - $caption = '

' . $this->formatPlural($num_paragraphs, '%type Paragraphs type is used by 1 piece of content on your site. You can not remove this %type Paragraphs type until you have removed all from the content.', '%type Paragraphs type is used by @count pieces of content on your site. You may not remove %type Paragraphs type until you have removed all from the content.', ['%type' => $this->entity->label()]) . '

'; - $form['#title'] = $this->getQuestion(); - $form['description'] = ['#markup' => $caption]; - return $form; - } - - return parent::buildForm($form, $form_state); - } - -}