public function ImageStyle::id in Drupal 8
Same name and namespace in other branches
- 9 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::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
4 calls to ImageStyle::id()
- ImageStyle::flush in core/
modules/ image/ src/ Entity/ ImageStyle.php - Flushes cached media for this style.
- ImageStyle::getPathToken in core/
modules/ image/ src/ Entity/ ImageStyle.php - Generates a token to protect an image style derivative.
- ImageStyle::getReplacementID in core/
modules/ image/ src/ Entity/ ImageStyle.php - Returns the replacement ID.
- ImageStyle::postSave in core/
modules/ image/ src/ Entity/ ImageStyle.php - Acts on a saved entity before the insert or update hook is invoked.
File
- core/
modules/ image/ src/ Entity/ ImageStyle.php, line 100
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\EntityCode
public function id() {
return $this->name;
}