EntityViewDisplayEditForm::getEntityDisplay

protected EntityViewDisplayEditForm::getEntityDisplay($entity_type_id, $bundle, $mode)

Returns an entity display object to be used by this form.

Parameters

string $entity_type_id: The target entity type ID of the entity display.

string $bundle: The target bundle of the entity display.

string $mode: A view or form mode.

Return value

\Drupal\Core\Entity\Display\EntityDisplayInterface An entity display.

Overrides EntityDisplayFormBase::getEntityDisplay

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 86

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getEntityDisplay($entity_type_id, $bundle, $mode) {
  return entity_get_display($entity_type_id, $bundle, $mode);
}
doc_Drupal
2016-10-29 09:09:00
Comments
Leave a Comment

Please login to continue.