You are here

public function TextimageFactory::getState in Textimage 8.4

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

Gets a Textimage state variable.

@todo (core) remove when #1826362 (ImageStyle to be accessible from ImageEffect plugins) is committed.

Parameters

string $variable: State variable.

Return value

mixed Returned variable, NULL if undefined.

File

src/TextimageFactory.php, line 153

Class

TextimageFactory
Provides a factory for Textimage.

Namespace

Drupal\textimage

Code

public function getState($variable = NULL) {
  if ($variable) {
    return $this
      ->setState($variable);
  }
  return NULL;
}