3 namespace Drupal\node\Plugin\migrate\source\d6;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * A base class for migrations that require view mode info.
10 abstract class ViewModeBase extends DrupalSqlBase {
15 public function count() {
16 return count($this->initializeIterator());
20 * Get a list of D6 view modes.
22 * Drupal 6 supported the following view modes.
23 * NODE_BUILD_NORMAL = 0
24 * NODE_BUILD_PREVIEW = 1
25 * NODE_BUILD_SEARCH_INDEX = 2
26 * NODE_BUILD_SEARCH_RESULT = 3
28 * NODE_BUILD_PRINT = 5
33 * The view mode names.
35 public function getViewModes() {