function CommentType::initializeIterator

Overrides SqlBase::initializeIterator

File

core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php, line 44

Class

CommentType
Drupal 7 comment type source from database.

Namespace

Drupal\comment\Plugin\migrate\source\d7

Code

protected function initializeIterator() {
    $this->nodeTypes = $this->select('node_type', 'nt')
        ->fields('nt', [
        'type',
        'name',
    ])
        ->execute()
        ->fetchAllKeyed();
    return parent::initializeIterator();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.