public function TabBase::setConfiguration in Block Tabs 8
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to TabBase::setConfiguration()
- TabBase::__construct in src/
TabBase.php - Overrides \Drupal\Component\Plugin\PluginBase::__construct().
File
- src/
TabBase.php, line 156
Class
- TabBase
- Provides a base class for tabs.
Namespace
Drupal\blocktabsCode
public function setConfiguration(array $configuration) {
$configuration += [
'data' => [],
'uuid' => '',
'title' => '',
'weight' => '',
];
$this->configuration = $configuration['data'] + $this
->defaultConfiguration();
$this->uuid = $configuration['uuid'];
$this->title = $configuration['title'];
$this->weight = $configuration['weight'];
return $this;
}