Same name in other branches
  1. 6.0.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::create()
  2. 8.x-2.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::create()
  3. 8.x-3.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::create()
  4. 8.x-4.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::create()
1 call to InfoForm::create()
InfoFormTest::setUp in tests/src/Kernel/Form/InfoFormTest.php
@covers ::__construct

File

src/Form/InfoForm.php, line 63

Class

InfoForm
View AdvAgg information for this site.

Namespace

Drupal\advagg\Form

Code

public static function create(ContainerInterface $container) {
    
    /**
     * @var \Drupal\advagg\Form\InfoForm
     */
    $instance = parent::create($container);
    $instance->setThemeRegistry($container->get('theme.registry'));
    $instance->setRequestStack($container->get('request_stack'));
    $instance->setDateFomatter($container->get('date.formatter'));
    $instance->setStringTranslation($container->get('string_translation'));
    $instance->setCache($container->get('cache.advagg'));
    return $instance;
}