Drupal 8  8.0.2
BookAdminEditForm Class Reference
Inheritance diagram for BookAdminEditForm:

Public Member Functions

 __construct (EntityStorageInterface $node_storage, BookManagerInterface $book_manager)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state, NodeInterface $node=NULL)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 bookAdminTable (NodeInterface $node, array &$form)
 
 bookAdminTableTree (array $tree, array &$form)
 

Protected Attributes

 $nodeStorage
 
 $bookManager
 

Detailed Description

Provides a form for administering a single book's hierarchy.

Constructor & Destructor Documentation

__construct ( EntityStorageInterface  $node_storage,
BookManagerInterface  $book_manager 
)

Constructs a new BookAdminEditForm.

Parameters
\Drupal\Core\Entity\EntityStorageInterface$node_storageThe custom block storage.
\Drupal\book\BookManagerInterface$book_managerThe book manager.

Member Function Documentation

bookAdminTable ( NodeInterface  $node,
array &  $form 
)
protected

Builds the table portion of the form for the book administration page.

Parameters
\Drupal\node\NodeInterface$nodeThe node of the top-level page in the book.
array$formThe form that is being modified, passed by reference.
See Also
self::buildForm()

References BookManager\BOOK_MAX_DEPTH, BookAdminEditForm\bookAdminTableTree(), Crypt\hashBase64(), and t().

Referenced by BookAdminEditForm\buildForm().

Here is the call graph for this function:

Here is the caller graph for this function:

bookAdminTableTree ( array  $tree,
array &  $form 
)
protected

Helps build the main table in the book administration page form.

Parameters
array$treeA subtree of the book menu hierarchy.
array$formThe form that is being modified, passed by reference.
See Also
self::buildForm()

References Drupal\currentUser(), and t().

Referenced by BookAdminEditForm\bookAdminTable().

Here is the call graph for this function:

Here is the caller graph for this function:

buildForm ( array  $form,
FormStateInterface  $form_state,
NodeInterface  $node = NULL 
)

{}

References BookAdminEditForm\bookAdminTable(), and t().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References Element\children(), FormStateInterface\getUserInput(), FormStateInterface\getValue(), Drupal\logger(), and t().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References FormStateInterface\getValue(), FormStateInterface\setErrorByName(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: