public ImageEffectBase::setConfiguration(array $configuration)
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurablePluginInterface::setConfiguration
File
- core/modules/image/src/ImageEffectBase.php, line 142
Class
- ImageEffectBase
- Provides a base class for image effects.
Namespace
Drupal\image
Code
public function setConfiguration(array $configuration) { $configuration += array( 'data' => array(), 'uuid' => '', 'weight' => '', ); $this->configuration = $configuration['data'] + $this->defaultConfiguration(); $this->uuid = $configuration['uuid']; $this->weight = $configuration['weight']; return $this; }
Please login to continue.