ResponsiveImageStyle::hasImageStyleMappings

public ResponsiveImageStyle::hasImageStyleMappings()

Checks if there is at least one mapping defined.

Return value

bool Whether the entity has any image style mappings.

Overrides ResponsiveImageStyleInterface::hasImageStyleMappings

File

core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 125

Class

ResponsiveImageStyle
Defines the responsive image style entity.

Namespace

Drupal\responsive_image\Entity

Code

public function hasImageStyleMappings() {
  $mappings = $this->getKeyedImageStyleMappings();
  return !empty($mappings);
}
doc_Drupal
2016-10-29 09:38:01
Comments
Leave a Comment

Please login to continue.