function EntityFormWizardBase::getParameters

Same name in other branches
  1. 8.x-3.x src/Wizard/EntityFormWizardBase.php \Drupal\ctools\Wizard\EntityFormWizardBase::getParameters()

Overrides FormWizardBase::getParameters

File

src/Wizard/EntityFormWizardBase.php, line 54

Class

EntityFormWizardBase
The base class for all entity form wizards.

Namespace

Drupal\ctools\Wizard

Code

public static function getParameters() {
    $parameters = [
        'tempstore' => \Drupal::service('tempstore.shared'),
        'builder' => \Drupal::service('form_builder'),
        'class_resolver' => \Drupal::service('class_resolver'),
        'event_dispatcher' => \Drupal::service('event_dispatcher'),
        'entity_type_manager' => \Drupal::service('entity_type.manager'),
        'renderer' => \Drupal::service('renderer'),
    ];
    // Keep the deprecated entity manager service as a parameter as well for
    // BC, so that subclasses still work.
    if (\Drupal::hasService('entity.manager')) {
        $parameters['entity_manager'] = \Drupal::service('entity.manager');
    }
    return $parameters;
}