function RestExampleClientEdit::create

Same name in other branches
  1. 3.x modules/rest_example/src/Form/RestExampleClientEdit.php \Drupal\rest_example\Form\RestExampleClientEdit::create()

Overrides FormBase::create

File

modules/rest_example/src/Form/RestExampleClientEdit.php, line 35

Class

RestExampleClientEdit
Edit or create a new node on a remote Drupal site.

Namespace

Drupal\rest_example\Form

Code

public static function create(ContainerInterface $container) {
    $form = new static($container->get('rest_example_client_calls'));
    $form->setConfigFactory($container->get('config.factory'));
    $form->setMessenger($container->get('messenger'));
    $form->setStringTranslation($container->get('string_translation'));
    return $form;
}