You are here

public function EntityRoutingMapBase::setTargetEntityType in Form mode manager 8.2

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

Set the target entity type.

Overrides EntityRoutingMapInterface::setTargetEntityType

2 calls to EntityRoutingMapBase::setTargetEntityType()
EntityRoutingMapBase::setConfiguration in src/EntityRoutingMapBase.php
Sets the configuration for this plugin instance.
EntityRoutingMapBase::__construct in src/EntityRoutingMapBase.php
Constructs display plugin.

File

src/EntityRoutingMapBase.php, line 206

Class

EntityRoutingMapBase
Base class for form mode manager entity routing plugin.

Namespace

Drupal\form_mode_manager

Code

public function setTargetEntityType() {
  if (empty($this->pluginDefinition['targetEntityType']) && !empty($this->configuration['entityTypeId'])) {
    $this->pluginDefinition['targetEntityType'] = $this->configuration['entityTypeId'];
  }
  $this->targetEntityType = $this->pluginDefinition['targetEntityType'];
}