You are here

public function TextimageFactory::get in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/TextimageFactory.php \Drupal\textimage\TextimageFactory::get()

Gets a Textimage object.

Parameters

\Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: A BubbleableMetadata object.

Return value

\Drupal\textimage\Textimage A new Textimage object.

Overrides TextimageFactoryInterface::get

1 call to TextimageFactory::get()
TextimageFactory::load in src/TextimageFactory.php
Loads a cached Textimage object.

File

src/TextimageFactory.php, line 115

Class

TextimageFactory
Provides a factory for Textimage.

Namespace

Drupal\textimage

Code

public function get(BubbleableMetadata $bubbleable_metadata = NULL) {

  // @todo remove the \Drupal::getContainer() call in a future new major
  // @codingStandardsIgnoreLine
  $textimage = Textimage::create(\Drupal::getContainer());
  $textimage
    ->setBubbleableMetadata($bubbleable_metadata);
  return $textimage;
}