trait PluginCollectionArrayAdapter in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/PluginCollectionArrayAdapter.php \Drupal\xbbcode\PluginCollectionArrayAdapter
Adapt plugin collection methods for array access.
@package Drupal\xbbcode
Hierarchy
- trait \Drupal\xbbcode\PluginCollectionArrayAdapter
File
- src/
PluginCollectionArrayAdapter.php, line 10
Namespace
Drupal\xbbcodeView source
trait PluginCollectionArrayAdapter {
/**
* {@inheritdoc}
*/
public function offsetExists($offset) : bool {
/** @var \Drupal\xbbcode\PluginCollectionInterface $this */
return $this
->has($offset);
}
/**
* {@inheritdoc}
*/
public function offsetGet($offset) {
/** @var \Drupal\xbbcode\PluginCollectionInterface $this */
return $this
->get($offset);
}
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value) {
/** @var \Drupal\xbbcode\PluginCollectionInterface $this */
return $this
->set($offset, $value);
}
/**
* {@inheritdoc}
*/
public function offsetUnset($offset) {
/** @var \Drupal\xbbcode\PluginCollectionInterface $this */
return $this
->remove($offset);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginCollectionArrayAdapter:: |
public | function | ||
PluginCollectionArrayAdapter:: |
public | function | ||
PluginCollectionArrayAdapter:: |
public | function | ||
PluginCollectionArrayAdapter:: |
public | function |