/** * {@inheritdoc} */ public function getAttributes($formCode) { $key = $formCode; if (isset($this->attributesCache[$key])) { return $this->attributesCache[$key]; } $value = $this->metadata->getAttributes($formCode); $this->attributesCache[$key] = $value; return $value; }
/** * {@inheritdoc} */ public function getAttributes($formCode) { $attributes = $this->getCache()->getAttributes($this->entityType, $formCode); if ($attributes !== false) { return $attributes; } $attributes = $this->metadata->getAttributes($formCode); $this->getCache()->saveAttributes($this->entityType, $attributes, $formCode); return $attributes; }