setConfiguration($configuration); } /** * {@inheritdoc} */ public function getUuid() { return $this->uuid; } /** * {@inheritdoc} */ public function getLabel() { return $this->pluginDefinition['label']; } /** * {@inheritdoc} */ public function getSummary() { return array(); } /** * {@inheritdoc} */ public function getWeight() { return $this->weight; } /** * {@inheritdoc} */ public function setWeight($weight) { return $this->weight = $weight; } /** * {@inheritdoc} */ public function getConfiguration() { return [ 'uuid' => $this->getUuid(), 'id' => $this->getPluginId(), 'weight' => $this->getWeight(), 'settings' => $this->configuration, ]; } /** * {@inheritdoc} */ public function setConfiguration(array $configuration) { $configuration += [ 'uuid' => '', 'weight' => '0', 'settings' => [], ]; $this->configuration = $configuration['settings'] + $this->defaultConfiguration(); $this->uuid = $configuration['uuid']; $this->weight = $configuration['weight']; return $this; } /** * {@inheritdoc} */ public function defaultConfiguration() { return []; } /** * {@inheritdoc} */ public function calculateDependencies() { return []; } }