function ImageStyle::getName

Returns the image style.

Return value

string The name of the image style.

Overrides ImageStyleInterface::getName

File

core/modules/image/src/Entity/ImageStyle.php, line 436

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

public function getName() {
  return $this->get('name');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.