You are here

public function UIkitCard::getInfo in UIkit Components 8.3

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/UIkitCard.php, line 57

Class

UIkitCard
Provides a render element for the Card component.

Namespace

Drupal\uikit_components\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#title' => NULL,
    '#content' => NULL,
    '#attributes' => new Attribute(),
    '#style' => 'default',
    '#hover' => FALSE,
    '#size' => NULL,
    '#badge' => NULL,
    '#header' => NULL,
    '#footer' => NULL,
    '#media' => NULL,
    '#pre_render' => [
      [
        $class,
        'preRenderUIkitCard',
      ],
    ],
    '#theme_wrappers' => [
      'uikit_card',
    ],
  ];
}