public function row($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    $bundles = $this->entityManager->getBundleInfo($this->entityName);
    if (!isset($bundles[$this->entityBundle])) {
      throw new MigrateSkipRowException();
    }
    return $this->configuration['bundle'];
  }
public function row($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    $bundles = $this->entityManager->getBundleInfo($this->entityName);
    if (!isset($bundles[$this->entityBundle])) {
      throw new MigrateSkipRowException();
    }
    return $this->configuration['bundle'];
  }
public function row ( $ value , MigrateExecutableInterface $ migrate_executable , Row $ row , $ destination_property ) { $ bundles = $ this -> entityManager -> getBundleInfo ( $ this -> entityName ) ; if ( ! isset ( $ bundles [ $ this -> entityBundle ] ) ) { throw new MigrateSkipRowException ( ) ; } return $ this -> configuration [ 'bundle' ] ; }
Skips the current row when bundle not exist.

@param mixed $value
The input value.
@param \Drupal\migrate\MigrateExecutableInterface $migrate_executable
The migration in which this process is being executed.
@param \Drupal\migrate\Row $row
The row from the source to process.
@param string $destination_property
The destination property currently worked on. This is only used together
with the $row above.

@return string
Entity bundle name if exist.

@throws \Drupal\migrate\MigrateSkipRowException
Thrown if entity bundle not exist and the row should be skipped,
records with STATUS_IGNORED status in the map.
Skips the current row when bundle not exist .