public function EntityRoutingMapBase::setConfiguration in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/EntityRoutingMapBase.php \Drupal\form_mode_manager\EntityRoutingMapBase::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to EntityRoutingMapBase::setConfiguration()
- EntityRoutingMapBase::__construct in src/
EntityRoutingMapBase.php - Constructs display plugin.
File
- src/
EntityRoutingMapBase.php, line 151
Class
- EntityRoutingMapBase
- Base class for form mode manager entity routing plugin.
Namespace
Drupal\form_mode_managerCode
public function setConfiguration(array $configuration) {
$configuration += $this
->defaultConfiguration();
if ($this
->getPluginId() === 'generic') {
$this
->setTargetEntityType();
$this
->setOperations();
}
$this->configuration = $configuration;
}