You are here

public function IFrame::__construct in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityBrowser/Display/IFrame.php \Drupal\entity_browser\Plugin\EntityBrowser\Display\IFrame::__construct()

Constructs display plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.

\Drupal\Component\Uuid\UuidInterface $uuid: UUID generator interface.

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $selection_storage: The selection storage.

\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The currently active route match object.

\Symfony\Component\HttpFoundation\Request $request: Current request.

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Render\BareHtmlPageRendererInterface $bare_html_page_renderer: The bare HTML page renderer.

Overrides DisplayBase::__construct

File

src/Plugin/EntityBrowser/Display/IFrame.php, line 97

Class

IFrame
Presents entity browser in an iFrame.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\Display

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, UuidInterface $uuid, KeyValueStoreExpirableInterface $selection_storage, RouteMatchInterface $current_route_match, Request $request, CurrentPathStack $current_path, RendererInterface $renderer, BareHtmlPageRendererInterface $bare_html_page_renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $uuid, $selection_storage);
  $this->currentRouteMatch = $current_route_match;
  $this->request = $request;
  $this->currentPath = $current_path;
  $this->renderer = $renderer;
  $this->bareHtmlPageRenderer = $bare_html_page_renderer;
}