You are here

public function ImageAPIOptimizePipeline::id in Image Optimize (or ImageAPI Optimize) 4.x

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

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

3 calls to ImageAPIOptimizePipeline::id()
ImageAPIOptimizePipeline::flush in src/Entity/ImageAPIOptimizePipeline.php
Flushes cached media for this pipeline.
ImageAPIOptimizePipeline::getReplacementID in src/Entity/ImageAPIOptimizePipeline.php
Returns the replacement ID.
ImageAPIOptimizePipeline::postSave in src/Entity/ImageAPIOptimizePipeline.php
Acts on a saved entity before the insert or update hook is invoked.

File

src/Entity/ImageAPIOptimizePipeline.php, line 88

Class

ImageAPIOptimizePipeline
Defines an image optimize pipeline configuration entity.

Namespace

Drupal\imageapi_optimize\Entity

Code

public function id() {
  return $this->name;
}