You are here

public function Textimage::style in Textimage 7.3

Set the image style.

Parameters

object $image_style: the image style to be used to derive the Textimage

Return value

self this object

File

classes/Textimage.inc, line 156
Textimage - Textimage class.

Class

Textimage
@file Textimage - Textimage class.

Code

public function style($image_style) {
  if (TextimageStyles::isTextimage($image_style)) {
    $this
      ->set('style', $image_style);
    $this
      ->set('effects', TextimageStyles::getEffectsOutline($this->style));
  }
  return $this;
}