public function CommentVariable::count in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php \Drupal\comment\Plugin\migrate\source\d6\CommentVariable::count()
Get the source count.
Return a count of available source records, from the cache if appropriate. Returns -1 if the source is not countable.
Parameters
bool $refresh: Whether or not to refresh the count.
Return value
int The count.
Overrides DummyQueryTrait::count
File
- core/
modules/ comment/ src/ Plugin/ migrate/ source/ d6/ CommentVariable.php, line 32 - Contains \Drupal\comment\Plugin\migrate\source\d6\CommentVariable.
Class
- CommentVariable
- Plugin annotation @MigrateSource( id = "d6_comment_variable" )
Namespace
Drupal\comment\Plugin\migrate\source\d6Code
public function count() {
return count($this
->getCommentVariables());
}