You are here

public function FlippingBook::extractUploadLocation in Flipping Book 8

Extract upload location.

Parameters

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

Return value

string The Flipping Book upload location.

Overrides FlippingBookInterface::extractUploadLocation

2 calls to FlippingBook::extractUploadLocation()
FlippingBook::buildFlippingBookUrl in src/FlippingBook.php
Build Flipping Book URL.
FlippingBook::deleteArchive in src/FlippingBook.php
Delete Flipping Book Archive.

File

src/FlippingBook.php, line 59

Class

FlippingBook
Class FlippingBook.

Namespace

Drupal\flipping_book

Code

public function extractUploadLocation(FlippingBookEntity $flippingBook) {
  $flipping_book_type = $this
    ->getBundleEntity($flippingBook);
  return $flipping_book_type
    ->get('location');
}