You are here

public function ViewModeBase::getViewModes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Plugin/migrate/source/d6/ViewModeBase.php \Drupal\node\Plugin\migrate\source\d6\ViewModeBase::getViewModes()

Get a list of D6 view modes.

Drupal 6 supported the following view modes. NODE_BUILD_NORMAL = 0 NODE_BUILD_PREVIEW = 1 NODE_BUILD_SEARCH_INDEX = 2 NODE_BUILD_SEARCH_RESULT = 3 NODE_BUILD_RSS = 4 NODE_BUILD_PRINT = 5 teaser full

Return value

array The view mode names.

2 calls to ViewModeBase::getViewModes()
FieldInstancePerViewMode::initializeIterator in core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php
Implementation of MigrateSource::performRewind().
ViewMode::initializeIterator in core/modules/node/src/Plugin/migrate/source/d6/ViewMode.php
Implementation of MigrateSource::performRewind().

File

core/modules/node/src/Plugin/migrate/source/d6/ViewModeBase.php, line 40
Contains \Drupal\node\Plugin\migrate\source\d6\ViewModeBase.

Class

ViewModeBase
A base class for migrations that require view mode info.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

public function getViewModes() {
  return array(
    0,
    1,
    2,
    3,
    4,
    5,
    'teaser',
    'full',
  );
}