Commit c1c7e14b authored by webchick's avatar webchick

Issue #2325485 by tim.plunkett, almaudoh: Convert field_ui_element_info() to Element classes.

parent a3f0d471
......@@ -72,6 +72,8 @@ function field_ui_theme() {
/**
* Implements hook_element_info().
*
* @todo Remove once https://www.drupal.org/node/2326409 is in.
*/
function field_ui_element_info() {
return array(
......
<?php
/**
* @file
* Contains \Drupal\field_ui\Element\FieldUiTable.
*/
namespace Drupal\field_ui\Element;
use Drupal\Core\Render\Element\RenderElement;
/**
* Provides a field_ui table element.
*
* @todo Annotate once https://www.drupal.org/node/2326409 is in.
* RenderElement("field_ui_table")
*/
class FieldUiTable extends RenderElement {
/**
* {@inheritdoc}
*/
public function getInfo() {
return array(
'#theme' => 'field_ui_table',
'#regions' => array('' => array()),
);
}
}
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