'hidden' => TRUE,
'limit' => BookManager::BOOK_MAX_DEPTH - 2,
],
[ 'action' => 'order',
'relationship' => 'sibling',
'group' => 'book-weight',
],
],
];
$tree =
$this->bookManager->
bookSubtreeData($node->book
);
// Do not include the book item itself.
$tree =
array_shift($tree);
if ($tree['below'
]) { $hash = Crypt::
hashBase64(serialize($tree['below'
]));
// Store the hash value as a hidden form element so that we can detect
// if another user changed the book hierarchy.
$form['tree_hash'
] =
[ '#type' => 'hidden',
'#default_value' =>
$hash,
];
$form['tree_current_hash'
] =
[