Returns the number of attributes.
Return value
int The number of attributes
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php, line 153
Class
- AttributeBag
- This class relates to session attribute storage
Namespace
Symfony\Component\HttpFoundation\Session\Attribute
Code
public function count() {
return count($this->attributes);
}