Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Icon.php

function Icon::getInfo

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/Icon.php, line 39

Class

Icon
Provides a render element to display an icon.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() : array {
    return [
        '#pre_render' => [
            [
                self::class,
                'preRenderIcon',
            ],
        ],
        '#pack_id' => '',
        '#icon_id' => '',
        '#settings' => [],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal