W3cubDocs

/Drupal 8

public function ElementInfoManagerInterface::getInfoProperty

public ElementInfoManagerInterface::getInfoProperty($type, $property_name, $default = NULL)

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

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

File

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

Class

ElementInfoManagerInterface
Collects available render array element types.

Namespace

Drupal\Core\Render

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!ElementInfoManagerInterface.php/function/ElementInfoManagerInterface::getInfoProperty/8.1.x