public function EntityRoutingMapBase::__construct in Form mode manager 8
Same name and namespace in other branches
- 8.2 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 54
Class
- EntityRoutingMapBase
- Base class for form mode manager entity routing plugin.
Namespace
Drupal\form_mode_managerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
$this
->setDefaultFormClass();
$this
->setEditFormClass();
$this
->setTargetEntityType();
}