/** * {@inheritdoc} */ public function getAttributeMetadata($attributeCode) { $key = $attributeCode; if (isset($this->attributeMetadataCache[$key])) { return $this->attributeMetadataCache[$key]; } $value = $this->metadata->getAttributeMetadata($attributeCode); $this->attributeMetadataCache[$key] = $value; return $value; }
/** * {@inheritdoc} */ public function getAttributeMetadata($attributeCode) { $metadata = $this->getCache()->getAttributes($this->entityType, $attributeCode); if ($metadata) { return $metadata; } $metadata = $this->metadata->getAttributeMetadata($attributeCode); $this->getCache()->saveAttributes($this->entityType, $metadata, $attributeCode); return $metadata; }