element_info($type)
Retrieves the default properties for the defined element type.
Parameters
$type: An element type as defined by an element plugin.
Deprecated
in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal::service('element_info')->getInfo() instead.
File
- core/includes/common.inc, line 1005
- Common functions that many Drupal modules will need to reference.
Code
function element_info($type) { return \Drupal::service('element_info')->getInfo($type); }
Please login to continue.