Commit b9114f68 authored by catch's avatar catch

Issue #2443805 by a_thakur, JeroenT: Remove element_* from common.inc

parent 77f2abc9
......@@ -1331,92 +1331,6 @@ function element_info_property($type, $property_name, $default = NULL) {
return \Drupal::service('element_info')->getInfoProperty($type, $property_name, $default);
}
/**
* Checks if the key is a property.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::property().
*/
function element_property($key) {
return Element::property($key);
}
/**
* Gets properties of a structured array element (keys beginning with '#').
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::properties().
*/
function element_properties($element) {
return Element::properties($element);
}
/**
* Checks if the key is a child.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::child().
*/
function element_child($key) {
return Element::child($key);
}
/**
* Identifies the children of an element array, optionally sorted by weight.
*
* The children of a element array are those key/value pairs whose key does
* not start with a '#'. See drupal_render() for details.
*
* @param $elements
* The element array whose children are to be identified.
* @param $sort
* Boolean to indicate whether the children should be sorted by weight.
*
* @return
* The array keys of the element's children.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::children().
*/
function element_children(&$elements, $sort = FALSE) {
return Element::children($elements, $sort);
}
/**
* Returns the visible children of an element.
*
* @param $elements
* The parent element.
*
* @return
* The array keys of the element's visible children.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::getVisibleChildren().
*/
function element_get_visible_children(array $elements) {
return Element::getVisibleChildren($elements);
}
/**
* Sets HTML attributes based on element properties.
*
* @param $element
* The renderable element to process.
* @param $map
* An associative array whose keys are element property names and whose values
* are the HTML attribute names to set for corresponding the property; e.g.,
* array('#propertyname' => 'attributename'). If both names are identical
* except for the leading '#', then an attribute name value is sufficient and
* no property name needs to be specified.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Render\Element::setAttributes().
*/
function element_set_attributes(array &$element, array $map) {
Element::setAttributes($element, $map);
}
/**
* Flushes all persistent caches, resets all variables, and rebuilds all data structures.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment