public function ArrayPluginDefinitionDecorator::offsetSet in Plugin 8.2
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 304
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function offsetSet($offset, $value) {
switch ($offset) {
case 'class':
$this
->setClass($value);
break;
case 'deriver':
$this
->setDeriverClass($value);
break;
case 'context':
$this
->setContextDefinitions($value);
break;
default:
$this->arrayDefinition[$offset] = $value;
break;
}
}