/**
  * {@inheritdoc}
  */
 public function getAllAttributesMetadata()
 {
     if ($this->allAttributeMetadataCache !== null) {
         return $this->allAttributeMetadataCache;
     }
     $this->allAttributeMetadataCache = $this->metadata->getAllAttributesMetadata();
     return $this->allAttributeMetadataCache;
 }
Example #2
0
 /**
  * {@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;
 }