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

Breadcrumb

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

function ElementInfoManagerInterface::getInfoProperty

Retrieves a single property for the defined element type.

Parameters

string $type: An element type as defined by an element plugin.

string $property_name: The property within the element type that should be returned.

$default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL.

Return value

mixed The property value of the defined element type. Or the provided default value, which can be NULL.

1 method overrides ElementInfoManagerInterface::getInfoProperty()
ElementInfoManager::getInfoProperty in core/lib/Drupal/Core/Render/ElementInfoManager.php
Retrieves a single property for the defined element type.

File

core/lib/Drupal/Core/Render/ElementInfoManagerInterface.php, line 64

Class

ElementInfoManagerInterface
Collects available render array element types.

Namespace

Drupal\Core\Render

Code

public function getInfoProperty($type, $property_name, $default = NULL);

API Navigation

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