function ImageStyle::setName
Sets the name of the image style.
Parameters
string $name: The name of the image style.
Return value
$this The class instance this method is called on.
Overrides ImageStyleInterface::setName
File
-
core/
modules/ image/ src/ Entity/ ImageStyle.php, line 445
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\EntityCode
public function setName($name) {
$this->set('name', $name);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.