Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / migrate / source / Variable.php
index 410acec229cff80481fe94f4a5236794c1ace785..a585510b0fd3ec7dacde1f52cff3105942a17d89 100644 (file)
@@ -13,7 +13,8 @@ use Drupal\migrate\Plugin\MigrationInterface;
  * example for any normal source class returning multiple rows.
  *
  * @MigrateSource(
- *   id = "variable"
+ *   id = "variable",
+ *   source_module = "system",
  * )
  */
 class Variable extends DrupalSqlBase {
@@ -58,7 +59,7 @@ class Variable extends DrupalSqlBase {
   /**
    * {@inheritdoc}
    */
-  public function count() {
+  public function count($refresh = FALSE) {
     return intval($this->query()->countQuery()->execute()->fetchField() > 0);
   }