You are here

public function EntityListWrapper::count in Entity API 7

File

includes/entity.wrapper.inc, line 1152
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityListWrapper
Wraps a list of values.

Code

public function count() {
  return $this
    ->dataAvailable() ? count($this
    ->value()) : 0;
}