public function FlippingBook::getDirectory in Flipping Book 8
Gets the Flipping Book directory path.
Return value
string Directory path of the Flipping Book.
Overrides FlippingBookInterface::getDirectory
File
- src/
Entity/ FlippingBook.php, line 179
Class
- FlippingBook
- Defines the Flipping Book entity.
Namespace
Drupal\flipping_book\EntityCode
public function getDirectory() {
$dir = $this
->get('directory')->value;
if (preg_match('/\\.tar$/', $dir)) {
$dir .= '/' . preg_replace('/\\.tar$/', '', $dir);
}
return $dir;
}