public function TextimageFactory::get in Textimage 8.3
Same name and namespace in other branches
- 8.4 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 103
Class
- TextimageFactory
- Provides a factory for Textimage.
Namespace
Drupal\textimageCode
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;
}