trait ImceSettersTrait in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceSettersTrait.php \Drupal\imce\ImceSettersTrait
The trait setters Imce.
Hierarchy
- trait \Drupal\imce\ImceSettersTrait
1 file declares its use of ImceSettersTrait
- ImceSettingsForm.php in src/
Form/ ImceSettingsForm.php
File
- src/
ImceSettersTrait.php, line 12
Namespace
Drupal\imceView source
trait ImceSettersTrait {
/**
* Manages entity type plugin definitions.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
/**
* The system file config.
*
* @var \Drupal\Core\Config\ImmutableConfig
*/
protected $configSystemFile;
/**
* Provides a StreamWrapper manager.
*
* @var \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface
*/
protected $streamWrapperManager;
/**
* Set entity type manager.
*
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
* The entity type manager.
*/
protected function setEntityTypeManager(EntityTypeManagerInterface $entityTypeManager) {
$this->entityTypeManager = $entityTypeManager;
return $this;
}
/**
* Set config system file.
*
* @param \Drupal\Core\Config\ImmutableConfig $configSystemFile
* The config system file.
*/
protected function setConfigSystemFile(ImmutableConfig $configSystemFile) {
$this->configSystemFile = $configSystemFile;
return $this;
}
/**
* Set the stream wrapper manager.
*
* @param \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager
* The stream wrapper manager.
*/
protected function setStreamWrapperManager(StreamWrapperManagerInterface $streamWrapperManager) {
$this->streamWrapperManager = $streamWrapperManager;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImceSettersTrait:: |
protected | property | The system file config. | 1 |
ImceSettersTrait:: |
protected | property | Manages entity type plugin definitions. | 1 |
ImceSettersTrait:: |
protected | property | Provides a StreamWrapper manager. | 1 |
ImceSettersTrait:: |
protected | function | Set config system file. | |
ImceSettersTrait:: |
protected | function | Set entity type manager. | |
ImceSettersTrait:: |
protected | function | Set the stream wrapper manager. |