Example #1
0
 /**
  * {@inheritdoc}
  */
 public function setConfigurationFor(FeedsPluginInterface $client, array $configuration)
 {
     $type = $client->pluginType();
     $this->get('config')->{$type} = $configuration;
     return $this;
 }
Example #2
0
File: Feed.php Project: Tawreh/mtg
 /**
  * {@inheritdoc}
  */
 public function setConfigurationFor(FeedsPluginInterface $client, array $configuration)
 {
     $type = $client->pluginType();
     $this->get('config')->{$type} = array_intersect_key($configuration, $client->sourceDefaults()) + $client->sourceDefaults();
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function submitConfigurationForm(array &$form, FormStateInterface $form_state)
 {
     $this->plugin->setConfiguration($form_state->getValues());
 }