You are here

public function ImceFolder::getConf in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceFolder.php \Drupal\imce\ImceFolder::getConf()

Returns folder configuration.

1 call to ImceFolder::getConf()
ImceFolder::getPermission in src/ImceFolder.php
Returns a permission value.

File

src/ImceFolder.php, line 66

Class

ImceFolder
Imce Folder.

Namespace

Drupal\imce

Code

public function getConf() {
  if (isset($this->conf)) {
    return $this->conf;
  }

  // Inherit parent conf.
  if ($parent = $this->parent) {
    if ($conf = $parent
      ->getConf()) {
      if (Imce::permissionInFolderConf('browse_subfolders', $conf)) {
        return $conf + [
          'inherited' => TRUE,
        ];
      }
    }
  }
}