You are here

public function Core::permissionInfo in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ImcePlugin/Core.php \Drupal\imce\Plugin\ImcePlugin\Core::permissionInfo()

Returns folder permission definitions.

Return value

array An array of id:label pairs.

Overrides ImcePluginBase::permissionInfo

File

src/Plugin/ImcePlugin/Core.php, line 26

Class

Core
Defines Imce Core plugin.

Namespace

Drupal\imce\Plugin\ImcePlugin

Code

public function permissionInfo() {
  return [
    'browse_files' => $this
      ->t('Browse files'),
    'browse_subfolders' => $this
      ->t('Browse subfolders'),
  ];
}