function EntityDisplayModeFormBase::create

Same name in other branches
  1. 11.x core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php \Drupal\field_ui\Form\EntityDisplayModeFormBase::create()

Overrides FormBase::create

File

core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php, line 63

Class

EntityDisplayModeFormBase
Provides the generic base class for entity display mode forms.

Namespace

Drupal\field_ui\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.bundle.info'), $container->get('entity_display.repository'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.