public function OverviewBase::__construct

Constructs the overview object for a entity type, bundle and view mode.

Parameters

string $entity_type: The entity type.

string $bundle: The bundle for the entity of entity_type.

string $view_mode: (optional) The view mode for the entity which takes a string or "default".

1 method overrides OverviewBase::__construct()
FieldOverview::__construct in drupal/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php
Overrides Drupal\field_ui\OverviewBase::__construct().

File

drupal/core/modules/field_ui/lib/Drupal/field_ui/OverviewBase.php, line 54
Definition of Drupal\field_ui\OverviewBase.

Class

OverviewBase
Abstract base class for Field UI overview forms.

Namespace

Drupal\field_ui

Code

public function __construct($entity_type, $bundle, $view_mode = NULL) {
  $this->entity_type = $entity_type;
  $this->bundle = $bundle;
  $this->view_mode = isset($view_mode) ? $view_mode : 'default';
  $this->adminPath = field_ui_bundle_admin_path($this->entity_type, $this->bundle);
}