public static function ThunderNodeForm::create in Thunder 8.3
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::create()
- 8.2 modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::create()
- 8.4 modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::create()
- 6.2.x modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::create()
- 6.0.x modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::create()
- 6.1.x modules/thunder_article/src/Form/ThunderNodeForm.php \Drupal\thunder_article\Form\ThunderNodeForm::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 ContainerInjectionInterface::create
File
- modules/
thunder_article/ src/ Form/ ThunderNodeForm.php, line 95
Class
- ThunderNodeForm
- Base for handler for node add/edit forms.
Namespace
Drupal\thunder_article\FormCode
public static function create(ContainerInterface $container) {
return new static($container
->get('current_user'), $container
->get('messenger'), $container
->get('request_stack'), $container
->get('access_check.node.revision'), $container
->get('entity_type.manager'), $container
->has('content_moderation.moderation_information') ? $container
->get('content_moderation.moderation_information') : NULL);
}