X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2FVariable.php;h=a585510b0fd3ec7dacde1f52cff3105942a17d89;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=410acec229cff80481fe94f4a5236794c1ace785;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php b/web/core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php index 410acec22..a585510b0 100644 --- a/web/core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php +++ b/web/core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php @@ -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); }