public function FieldInstancePerViewMode::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::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 SqlBase::count
File
- core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstancePerViewMode.php, line 87 - Contains \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode.
Class
- FieldInstancePerViewMode
- The field instance per view mode source class.
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function count() {
return $this
->initializeIterator()
->count();
}