You are here

trait ImceSettersTrait in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceSettersTrait.php \Drupal\imce\ImceSettersTrait

The trait setters Imce.

Hierarchy

1 file declares its use of ImceSettersTrait
ImceSettingsForm.php in src/Form/ImceSettingsForm.php

File

src/ImceSettersTrait.php, line 12

Namespace

Drupal\imce
View 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

Namesort descending Modifiers Type Description Overrides
ImceSettersTrait::$configSystemFile protected property The system file config. 1
ImceSettersTrait::$entityTypeManager protected property Manages entity type plugin definitions. 1
ImceSettersTrait::$streamWrapperManager protected property Provides a StreamWrapper manager. 1
ImceSettersTrait::setConfigSystemFile protected function Set config system file.
ImceSettersTrait::setEntityTypeManager protected function Set entity type manager.
ImceSettersTrait::setStreamWrapperManager protected function Set the stream wrapper manager.