You are here

public static function BrightcoveAPIClientDeleteForm::create in Brightcove Video Connect 8

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

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Overrides FormBase::create

File

src/Form/BrightcoveAPIClientDeleteForm.php, line 110

Class

BrightcoveAPIClientDeleteForm
Builds the form to delete Brightcove API Client entities.

Namespace

Drupal\brightcove\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('entity.query'), $container
    ->get('database'), $container
    ->get('queue')
    ->get('brightcove_playlist_local_delete_queue_worker'), $container
    ->get('queue')
    ->get('brightcove_video_local_delete_queue_worker'), $container
    ->get('queue')
    ->get('brightcove_player_delete_queue_worker'), $container
    ->get('queue')
    ->get('brightcove_custom_field_delete_queue_worker'), $container
    ->get('queue')
    ->get('brightcove_text_track_delete_queue_worker'), $container
    ->get('queue')
    ->get('brightcove_subscription_delete_queue_worker'));
}