You are here

public function BrightcoveVideoListBuilder::__construct in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/BrightcoveVideoListBuilder.php \Drupal\brightcove\BrightcoveVideoListBuilder::__construct()
  2. 3.x src/BrightcoveVideoListBuilder.php \Drupal\brightcove\BrightcoveVideoListBuilder::__construct()

Constructor.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: Entity type.

\Drupal\Core\Entity\EntityStorageInterface $storage: Entity storage.

\Drupal\Core\Session\AccountProxy $account_proxy: Account proxy.

\Drupal\Core\Datetime\DateFormatter $date_formatter: Date formatter.

Overrides EntityListBuilder::__construct

File

src/BrightcoveVideoListBuilder.php, line 51

Class

BrightcoveVideoListBuilder
Defines a class to build a listing of Brightcove Videos.

Namespace

Drupal\brightcove

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AccountProxy $account_proxy, DateFormatter $date_formatter) {
  parent::__construct($entity_type, $storage);
  $this->accountProxy = $account_proxy;
  $this->dateFormatter = $date_formatter;
}