You are here

public function EntityRoutingMapBase::setConfiguration in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 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 ConfigurablePluginInterface::setConfiguration

1 call to EntityRoutingMapBase::setConfiguration()
EntityRoutingMapBase::__construct in src/EntityRoutingMapBase.php
Constructs display plugin.

File

src/EntityRoutingMapBase.php, line 114

Class

EntityRoutingMapBase
Base class for form mode manager entity routing plugin.

Namespace

Drupal\form_mode_manager

Code

public function setConfiguration(array $configuration) {
  $configuration += $this
    ->defaultConfiguration();
  if ($this
    ->getPluginId() === 'generic') {
    $this
      ->setTargetEntityType();
    $this
      ->setOperations();
  }
  $this->configuration = $configuration;
}