Bolt\Translation\TranslationFile::scanContenttypeFields PHP 메소드

scanContenttypeFields() 개인적인 메소드

Add fields names and labels for contenttype (forms) to the list of translatable strings.
private scanContenttypeFields ( )
    private function scanContenttypeFields()
    {
        foreach ($this->app['config']->get('contenttypes') as $contenttype) {
            foreach ($contenttype['fields'] as $fkey => $field) {
                if ($field['label'] !== '') {
                    $this->addTranslatable($field['label']);
                } else {
                    $this->addTranslatable(ucfirst($fkey));
                }
            }
        }
    }