public function Upload::buildPage in IMCE 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImcePlugin/Upload.php \Drupal\imce\Plugin\ImcePlugin\Upload::buildPage()
Builds imce page by adding required libraries and elements.
Overrides ImcePluginBase::buildPage
File
- src/
Plugin/ ImcePlugin/ Upload.php, line 36
Class
- Upload
- Defines Imce Upload plugin.
Namespace
Drupal\imce\Plugin\ImcePluginCode
public function buildPage(array &$page, ImceFM $fm) {
if ($fm
->hasPermission('upload_files')) {
$page['#attached']['library'][] = 'imce/drupal.imce.upload';
}
}