isEmptyImageStyleMapping example

$mappings = $this->getKeyedImageStyleMappings();
    return !empty($mappings);
  }

  /** * {@inheritdoc} */
  public function getKeyedImageStyleMappings() {
    if (!$this->keyedImageStyleMappings) {
      $this->keyedImageStyleMappings = [];
      foreach ($this->image_style_mappings as $mapping) {
        if (!static::isEmptyImageStyleMapping($mapping)) {
          $this->keyedImageStyleMappings[$mapping['breakpoint_id']][$mapping['multiplier']] = $mapping;
        }
      }
    }
    return $this->keyedImageStyleMappings;
  }

  /** * {@inheritdoc} */
  public function getImageStyleMappings() {
    
Home | Imprint | This part of the site doesn't use cookies.