EntityDisplayFormBase::getRowRegion

public EntityDisplayFormBase::getRowRegion($row)

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

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 812

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

public function getRowRegion($row) {
  switch ($row['#row_type']) {
    case 'field':
    case 'extra_field':
      return ($row['plugin']['type']['#value'] == 'hidden' ? 'hidden' : 'content');
  }
}
doc_Drupal
2016-10-29 09:05:25
Comments
Leave a Comment

Please login to continue.