function element_info_property

Same name and namespace in other branches
  1. 8.9.x core/includes/ \element_info_property()

Retrieves a single property for the defined element type.


$type: An element type as defined by hook_element_info().

$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.

1 call to element_info_property()
field_ui_field_edit_form in modules/field_ui/
Form constructor for the field instance settings form.


includes/, line 6642


function element_info_property($type, $property_name, $default = NULL) {
    return ($info = element_info($type)) && array_key_exists($property_name, $info) ? $info[$property_name] : $default;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.