/** * {@inheritdoc} */ public function getAttributes() { if (!$this->attributeCollection) { $this->attributeCollection = new AttributeCollection($this->getAttributeManager(), $this->attributes); $this->attributeCollection->sort(); } return $this->attributeCollection; }