/** * {@inheritdoc} */ public function getAllAttributesMetadata() { if ($this->allAttributeMetadataCache !== null) { return $this->allAttributeMetadataCache; } $this->allAttributeMetadataCache = $this->metadata->getAllAttributesMetadata(); return $this->allAttributeMetadataCache; }
/** * {@inheritdoc} */ public function getAllAttributesMetadata() { $attributes = $this->getCache()->getAttributes($this->entityType, 'all'); if ($attributes !== false) { return $attributes; } $attributes = $this->metadata->getAllAttributesMetadata(); $this->getCache()->saveAttributes($this->entityType, $attributes, 'all'); return $attributes; }