You are here

public function ImageAPIOptimizePipeline::setName in Image Optimize (or ImageAPI Optimize) 8.2

Same name and namespace in other branches
  1. 8.3 src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::setName()
  2. 4.x src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::setName()

Sets the name of the image optimize pipeline.

Parameters

string $name: The name of the image optimize pipeline.

Return value

\Drupal\imageapi_optimize\ImageAPIOptimizePipelineInterface The class instance this method is called on.

Overrides ImageAPIOptimizePipelineInterface::setName

File

src/Entity/ImageAPIOptimizePipeline.php, line 280

Class

ImageAPIOptimizePipeline
Defines an image optimize pipeline configuration entity.

Namespace

Drupal\imageapi_optimize\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}