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; }
Please login to continue.