You are here

protected function FontOperationTrait::getStreamWrapperManagerForFontHandling in Image Effects 8

Returns the stream wrapper manager service.

Return value

\Drupal\Core\StreamWrapper\streamWrapperManagerInterface The stream wrapper manager service.

File

src/Plugin/ImageToolkit/Operation/FontOperationTrait.php, line 73

Class

FontOperationTrait
Base trait for image toolkit operations that require font handling.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function getStreamWrapperManagerForFontHandling() {
  if (!$this->streamWrapperManagerForFontHandling) {
    $this->streamWrapperManagerForFontHandling = \Drupal::service('stream_wrapper_manager');
  }
  return $this->streamWrapperManagerForFontHandling;
}