In book.module:

 $entity_types['node']
     ->setFormClass('book_outline', 'Drupal\book\Form\BookOutlineForm')

now, what does that do?

CommentFileSizeAuthor
#5 setFormClass_0.patch1.84 KBchx
#2 interdiff.txt1.08 KBchx
#2 setFormClass.patch1.84 KBchx
setFormClass.patch1.84 KBchx

Comments

tim.plunkett’s picture

Component: entity system » documentation
Category: Bug report » Task
Issue summary: View changes

+1

  1. +++ b/core/lib/Drupal/Core/Entity/EntityFormBuilderInterface.php
    @@ -19,7 +19,11 @@
    +   *   where book.outline is the value of $operation.
    

    where 'book_outline' is the value of $operation?

  2. +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php
    @@ -229,6 +229,8 @@ public function setStorageClass($class);
    +   * @see \Drupal\Core\Entity\\EntityFormBuilderInterface
    

    double \\

chx’s picture

StatusFileSize
new1.84 KB
new1.08 KB
tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Great!

jhodgdon’s picture

Status: Reviewed & tested by the community » Needs work

There is still a double \\ in https://groups.drupal.org/node/413918 -- other than that looks good to me too...

chx’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new1.84 KB

I also added the quotes Tim wanted in #1

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed to 8.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.