You are here

public function ServerFileList::__construct in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/ServerFileList.php \Drupal\filebrowser\ServerFileList::__construct()

ServerFileList constructor.

Parameters

\Drupal\node\NodeInterface $node:

string $relative_path:

File

src/ServerFileList.php, line 39

Class

ServerFileList

Namespace

Drupal\filebrowser

Code

public function __construct(NodeInterface $node, $relative_path) {
  $this->serverFileList = $this
    ->createServerFileList($node, $relative_path);
  $this->common = \Drupal::service('filebrowser.common');
  $this->filebrowser = $node->filebrowser;
}