public function BookOutlineStorage::countOriginalLinkChildren in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/src/BookOutlineStorage.php \Drupal\book\BookOutlineStorage::countOriginalLinkChildren()
Count the number of original link children.
Parameters
array $original: The book link array.
Return value
int Number of children.
Overrides BookOutlineStorageInterface::countOriginalLinkChildren
File
- core/
modules/ book/ src/ BookOutlineStorage.php, line 181 - Contains \Drupal\book\BookOutlineStorage.
Class
- BookOutlineStorage
- Defines a storage class for books outline.
Namespace
Drupal\bookCode
public function countOriginalLinkChildren($original) {
return $this->connection
->select('book', 'b')
->condition('bid', $original['bid'])
->condition('pid', $original['pid'])
->condition('nid', $original['nid'], '<>')
->countQuery()
->execute()
->fetchField();
}