You are here

public function GridStackPluginBase::setConfiguration in GridStack 8.2

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

2 calls to GridStackPluginBase::setConfiguration()
GridStackEnginePluginBase::itemAttributes in src/GridStackEnginePluginBase.php
Modifies the .box attributes.
GridStackEnginePluginBase::prepare in src/GridStackEnginePluginBase.php
Prepares the settings, selector and active styles.

File

src/GridStackPluginBase.php, line 118

Class

GridStackPluginBase
Provides base class for all gridstack plugins.

Namespace

Drupal\gridstack

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $this->configuration + $this
    ->defaultConfiguration();
  $this->configuration = NestedArray::mergeDeep($this->configuration, $configuration);
  return $this;
}