public function FlippingBookTypeForm::getImportLocations in Flipping Book 8
Get import locations.
Return value
array An array of available import locations.
1 call to FlippingBookTypeForm::getImportLocations()
- FlippingBookTypeForm::form in src/
Form/ FlippingBookTypeForm.php - Gets the actual form array to be built.
File
- src/
Form/ FlippingBookTypeForm.php, line 62
Class
- FlippingBookTypeForm
- Class FlippingBookTypeForm.
Namespace
Drupal\flipping_book\FormCode
public function getImportLocations() {
$locations = [
FlippingBookInterface::FLIPPING_BOOK_PUBLIC => $this
->t('Public folder'),
];
if (!empty(PrivateStream::basePath())) {
$locations[FlippingBookInterface::FLIPPING_BOOK_PRIVATE] = $this
->t('Private folder');
}
return $locations;
}