You are here

public function Presentation::__construct in Filebrowser 3.x

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

Presentation constructor.

Parameters

NodeInterface $node:

array $list:

File

src/Presentation.php, line 56

Class

Presentation

Namespace

Drupal\filebrowser

Code

public function __construct(NodeInterface $node, array $list) {

  /** @var \Drupal\filebrowser\Filebrowser $filebrowser */
  $this->common = \Drupal::service('filebrowser.common');
  $this->node = $node;
  $this->filebrowser = $node->filebrowser;
  $this->dbFileList = $list;
  $this->listOfFids = array_column($list, 'fid');
  $this
    ->init();
}