7 common.inc element_info_property($type, $property_name, $default = NULL)
8 common.inc element_info_property($type, $property_name, $default = NULL)

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.

3 calls to element_info_property()
ViewEditForm::renderDisplayTop in core/modules/views_ui/src/ViewEditForm.php
Render the top of the display so it can be updated during ajax operations.
views_ui_add_ajax_trigger in core/modules/views_ui/admin.inc
Converts a form element in the add view wizard to be AJAX-enabled.
ViewUI::getStandardButtons in core/modules/views_ui/src/ViewUI.php
Provide a standard set of Apply/Cancel/OK buttons for the forms. Also provide a hidden op operator because the forms plugin doesn't seem to properly provide which button was clicked.


core/includes/common.inc, line 1327
Common functions that many Drupal modules will need to reference.


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