public function DisplayOverview::getRowRegion

Returns the region to which a row in the display overview belongs.

Parameters

array $row: The row element.

Return value

string|null The region name this row belongs to.

File

drupal/core/modules/field_ui/lib/Drupal/field_ui/DisplayOverview.php, line 624
Contains \Drupal\field_ui\DisplayOverview.

Class

DisplayOverview
Field UI display overview form.

Namespace

Drupal\field_ui

Code

public function getRowRegion($row) {
  switch ($row['#row_type']) {
    case 'field':
    case 'extra_field':
      return $row['format']['type']['#value'] == 'hidden' ? 'hidden' : 'content';
  }
}