public function EntityRoutingMapBase::setTargetEntityType in Form mode manager 8
Same name and namespace in other branches
- 8.2 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 156
Class
- EntityRoutingMapBase
- Base class for form mode manager entity routing plugin.
Namespace
Drupal\form_mode_managerCode
public function setTargetEntityType() {
if (empty($this->pluginDefinition['targetEntityType']) && !empty($this->configuration['entityTypeId'])) {
$this->pluginDefinition['targetEntityType'] = $this->configuration['entityTypeId'];
}
$this->targetEntityType = $this->pluginDefinition['targetEntityType'];
}