function element_info_property

You are here

7 element_info_property($type, $property_name, $default = NULL)
8 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()
ViewEditFormController::renderDisplayTop in core/modules/views_ui/lib/Drupal/views_ui/ViewEditFormController.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/
Converts a form element in the add view wizard to be AJAX-enabled.
ViewUI::getStandardButtons in core/modules/views_ui/lib/Drupal/views_ui/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/, line 4213
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;