You are here

protected function FlippingBookForm::getFileFieldAccess in Flipping Book 8

Get file field access.

Return value

bool Whether or not file field must be shown.

File

src/Form/FlippingBookForm.php, line 167

Class

FlippingBookForm
Form controller for Flipping Book edit forms.

Namespace

Drupal\flipping_book\Form

Code

protected function getFileFieldAccess() {
  if ($this->entity
    ->get('directory')->value) {
    return FALSE;
  }
  return TRUE;
}