element_info_property($type, $property_name, $default = NULL)
Retrieves a single property for the defined element type.
$type: An element type as defined by an element plugin.
$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.
in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal::service('element_info')->getInfoProperty() instead.
function element_info_property($type, $property_name, $default = NULL) { return \Drupal::service('element_info')->getInfoProperty($type, $property_name, $default); }
© 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!includes!common.inc/function/element_info_property/8.1.x