You are here

public function EntityRoutingMapBase::__construct in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 src/EntityRoutingMapBase.php \Drupal\form_mode_manager\EntityRoutingMapBase::__construct()

Constructs display plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

src/EntityRoutingMapBase.php, line 70

Class

EntityRoutingMapBase
Base class for form mode manager entity routing plugin.

Namespace

Drupal\form_mode_manager

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setTargetEntityType();
  $this
    ->setConfiguration($configuration);
  $this
    ->setDefaultFormClass();
  $this
    ->setEditFormClass();
  $this
    ->setContextualLinks();
}