You are here

public function BynderMediaUsage::__construct in Bynder 8

Same name and namespace in other branches
  1. 8.3 src/Controller/BynderMediaUsage.php \Drupal\bynder\Controller\BynderMediaUsage::__construct()
  2. 8.2 src/Controller/BynderMediaUsage.php \Drupal\bynder\Controller\BynderMediaUsage::__construct()
  3. 4.0.x src/Controller/BynderMediaUsage.php \Drupal\bynder\Controller\BynderMediaUsage::__construct()

Constructs a BynderMediaUsage class instance.

Parameters

\Drupal\bynder\BynderApiInterface $bynder: The Bynder API service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Render\RendererInterface $renderer_object: Renderer object.

File

src/Controller/BynderMediaUsage.php, line 51

Class

BynderMediaUsage
Controller contains methods for displaying Bynder media usage info.

Namespace

Drupal\bynder\Controller

Code

public function __construct(BynderApiInterface $bynder, ConfigFactoryInterface $config_factory, RendererInterface $renderer_object) {
  $this->bynder = $bynder;
  $this->configFactory = $config_factory;
  $this->renderer = $renderer_object;
}