You are here

public static function EckEntityTypeFormBase::create in Entity Construction Kit (ECK) 8

Factory method for EckEntityTypeFormBase.

Overrides FormBase::create

File

src/Form/EntityType/EckEntityTypeFormBase.php, line 50

Class

EckEntityTypeFormBase
Class EckEntityTypeFormBase.

Namespace

Drupal\eck\Form\EntityType

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('entity_type.manager')
    ->getStorage('eck_entity_type'), $container
    ->get('entity_field.manager'));
}