Issue #2920018 by sergiuteaca, billywardrop, anyaabchiche, Janec, JO0st, davemckain, dinarcon, sthomps5, mairi, jyraya, kwhite: Add Change record to @deprecated for element_info service

8.5.x
xjm 2017-11-03 16:29:30 -05:00
parent 355462ba34
commit d0e3796991
1 changed files with 4 additions and 0 deletions

View File

@ -1002,6 +1002,8 @@ function show(&$element) {
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal::service('element_info')->getInfo() instead.
*
* @see https://www.drupal.org/node/2235461
*/
function element_info($type) {
return \Drupal::service('element_info')->getInfo($type);
@ -1020,6 +1022,8 @@ function element_info($type) {
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal::service('element_info')->getInfoProperty() instead.
*
* @see https://www.drupal.org/node/2235461
*/
function element_info_property($type, $property_name, $default = NULL) {
return \Drupal::service('element_info')->getInfoProperty($type, $property_name, $default);