You are here

public function Delete::permissionInfo in IMCE 8

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

Returns folder permission definitions.

Return value

array An array of id:label pairs.

Overrides ImcePluginBase::permissionInfo

File

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

Class

Delete
Defines Imce Delete plugin.

Namespace

Drupal\imce\Plugin\ImcePlugin

Code

public function permissionInfo() {
  return [
    'delete_files' => $this
      ->t('Delete files'),
    'delete_subfolders' => $this
      ->t('Delete subfolders'),
  ];
}