You are here

public static function SettingsForm::create in Blog API 8

Create a new instance ff the form object.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

Return value

static

Overrides ConfigFormBase::create

File

src/Form/SettingsForm.php, line 44

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\blogapi\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('config.factory'), $container
    ->get('entity_type.manager'), $container
    ->get('entity_field.manager'), $container
    ->get('service.communicator.blogapi'));
}