You are here

public function UrlEmbedDialog::__construct in URL Embed 8

Constructs a UrlEmbedDialog object.

Parameters

\Drupal\url_embed\UrlEmbedInterface $url_embed: The URL embed service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The Form Builder.

File

src/Form/UrlEmbedDialog.php, line 44
Contains \Drupal\url_embed\Form\UrlEmbedDialog.

Class

UrlEmbedDialog
Provides a form to embed URLs.

Namespace

Drupal\url_embed\Form

Code

public function __construct(UrlEmbedInterface $url_embed, FormBuilderInterface $form_builder) {
  $this
    ->setUrlEmbed($url_embed);
  $this->formBuilder = $form_builder;
}