public function getTranslatableMetadata($className)
    {
        if (array_key_exists($className, $this->cache)) {
            return $this->cache[$className];
        }

        if ($metadata = $this->metadataFactory->getMetadataForClass($className)) {
            if (!$metadata->reflection->isAbstract()) {
                $metadata->validate();
            }
        }

        $this->cache[$className] = $metadata;
        return $metadata;
    }
public function getTranslatableMetadata($className)
    {
        if (array_key_exists($className, $this->cache)) {
            return $this->cache[$className];
        }

        if ($metadata = $this->metadataFactory->getMetadataForClass($className)) {
            if (!$metadata->reflection->isAbstract()) {
                $metadata->validate();
            }
        }

        $this->cache[$className] = $metadata;
        return $metadata;
    }
public function getTranslatableMetadata ( $ className ) { if ( array_key_exists ( $ className , $ this -> cache ) ) { return $ this -> cache [ $ className ] ; } if ( $ metadata = $ this -> metadataFactory -> getMetadataForClass ( $ className ) ) { if ( ! $ metadata -> reflection -> isAbstract ( ) ) { $ metadata -> validate ( ) ; } } $ this -> cache [ $ className ] = $ metadata ; return $ metadata ; }
Get translatable metadata

@param string $className
@return TranslatableMetadata|TranslationMetadata
Get translatable metadata