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

Breadcrumb

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

function Element::properties

Gets properties of a structured array element (keys beginning with '#').

Parameters

array $element: An element array to return properties for.

Return value

array An array of property keys for the element.

1 call to Element::properties()
TextFormat::processFormat in core/modules/filter/src/Element/TextFormat.php
Expands an element into a base element with text format selector attached.

File

core/lib/Drupal/Core/Render/Element.php, line 38

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\Core\Render

Code

public static function properties(array $element) {
    return array_filter(array_keys($element), [
        static::class,
        'property',
    ]);
}

API Navigation

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