Same filename and directory in other branches
  1. 8.9.x core/modules/responsive_image/src/Element/ResponsiveImage.php
  2. 9 core/modules/responsive_image/src/Element/ResponsiveImage.php

Namespace

Drupal\responsive_image\Element

File

core/modules/responsive_image/src/Element/ResponsiveImage.php
View source
<?php

namespace Drupal\responsive_image\Element;

use Drupal\Core\Render\Attribute\RenderElement;
use Drupal\Core\Render\Element\RenderElementBase;

/**
 * Provides a responsive image element.
 */

#[RenderElement('responsive_image')]
class ResponsiveImage extends RenderElementBase {

  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return [
      '#theme' => 'responsive_image',
    ];
  }

}

Classes

Namesort descending Description
ResponsiveImage