ImageStyle::setName

public ImageStyle::setName($name)

Sets the name of the image style.

Parameters

string $name: The name of the image style.

Return value

\Drupal\image\ImageStyleInterface The class instance this method is called on.

Overrides ImageStyleInterface::setName

File

core/modules/image/src/Entity/ImageStyle.php, line 396

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

public function setName($name) {
  $this->set('name', $name);
  return $this;
}
doc_Drupal
2016-10-29 09:19:33
Comments
Leave a Comment

Please login to continue.