You are here

public function TextimageFactory::load in Textimage 8.4

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

Loads a cached Textimage object.

Parameters

string $tiid: The Textimage ID.

Return value

\Drupal\textimage\Textimage A Textimage object with properties loaded from cache.

Overrides TextimageFactoryInterface::load

File

src/TextimageFactory.php, line 126

Class

TextimageFactory
Provides a factory for Textimage.

Namespace

Drupal\textimage

Code

public function load($tiid) {
  $textimage = $this
    ->get();
  $textimage
    ->load($tiid);
  return $textimage;
}