/** * Gets the name this field should be exposed as (serializer concern). * Normally this is the name, but can be overriden by "exposeAs" property on the field. * * @return string exposed field name */ public function getExposedName() { return $this->definition->getExposeAs() === null ? $this->definition->getName() : $this->definition->getExposeAs(); }