/** * @param MediaRepositoryInterface $repository * @param DisplayMediaManager $displayMediaManager * @param EngineInterface $templating */ public function __construct(MediaRepositoryInterface $repository, DisplayMediaManager $displayMediaManager, EngineInterface $templating) { parent::__construct('media', ''); $this->repository = $repository; $this->displayMediaManager = $displayMediaManager; $this->templating = $templating; }
/** * @param UrlGeneratorInterface $urlGenerator * @param NodeManager $nodeManager * @param EngineInterface $templating */ public function __construct(UrlGeneratorInterface $urlGenerator, NodeManager $nodeManager, EngineInterface $templating) { parent::__construct('link', ''); $this->urlGenerator = $urlGenerator; $this->nodeManager = $nodeManager; $this->templating = $templating; $this->useOption = true; }