You are here

public static function ForwardFormBuilder::create in Forward 4.0.x

Same name and namespace in other branches
  1. 4.x src/Services/ForwardFormBuilder.php \Drupal\forward\Services\ForwardFormBuilder::create()

File

src/Services/ForwardFormBuilder.php, line 204

Class

ForwardFormBuilder
Defines a class for building markup for a Forward inline form on an entity.

Namespace

Drupal\forward\Services

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('form_builder'), $container
    ->get('current_route_match'), $container
    ->get('module_handler'), $container
    ->get('entity_type.manager'), $container
    ->get('request'), $container
    ->get('database'), $container
    ->get('token'), $container
    ->get('flood'), $container
    ->get('account.switcher'), $container
    ->get('renderer'), $container
    ->get('event_dispatcher'), $container
    ->get('plugin.manager.mail'), $container
    ->get('link_generator'), $container
    ->get('datetime.time'), $container
    ->get('email_validator'));
}