You are here

public function FlippingBook::getBundleEntity in Flipping Book 8

Get Bundle Entity.

Parameters

\Drupal\flipping_book\Entity\FlippingBook $flippingBook: A Flipping Book entity.

Return value

\Drupal\flipping_book\Entity\FlippingBookType The Flipping Book type entity.

Overrides FlippingBookInterface::getBundleEntity

1 call to FlippingBook::getBundleEntity()
FlippingBook::extractUploadLocation in src/FlippingBook.php
Extract upload location.

File

src/FlippingBook.php, line 67

Class

FlippingBook
Class FlippingBook.

Namespace

Drupal\flipping_book

Code

public function getBundleEntity(FlippingBookEntity $flippingBook) {
  $storage = $this->entityTypeManager
    ->getStorage('flipping_book_type');
  return $storage
    ->load($flippingBook
    ->bundle());
}