Pull merge.
[yaffs-website] / web / core / modules / migrate / src / Plugin / migrate / source / EmbeddedDataSource.php
index 0bb35f3e24bb53c48554fc11c7151d21dd6d06d1..f386a008e57ff378d6f5b04e1eddc2f7130e718d 100644 (file)
@@ -28,8 +28,8 @@ use Drupal\migrate\Plugin\MigrationInterface;
  *     -
  *       channel_machine_name: movies
  *       channel_description: Movies
- *     ids:
- *       channel_machine_name:
+ *   ids:
+ *     channel_machine_name:
  *       type: string
  * @endcode
  *
@@ -38,7 +38,8 @@ use Drupal\migrate\Plugin\MigrationInterface;
  * @see \Drupal\migrate\Plugin\MigrateSourceInterface
  *
  * @MigrateSource(
- *   id = "embedded_data"
+ *   id = "embedded_data",
+ *   source_module = "migrate"
  * )
  */
 class EmbeddedDataSource extends SourcePluginBase {
@@ -108,7 +109,7 @@ class EmbeddedDataSource extends SourcePluginBase {
   /**
    * {@inheritdoc}
    */
-  public function count() {
+  public function count($refresh = FALSE) {
     return count($this->dataRows);
   }