src/Transfer/EzPlatform/Repository/Values/ContentTypeObject.php
private function setMissingDefaults()
    {
        if (!isset($this->data['contenttype_groups'])) {
            $this->data['contenttype_groups'] = array('Content');
        }

        if ($this->notSetOrEmpty($this->data, 'names')) {
            $this->data['names'] = array(
                $this->data['main_language_code'] => $this->identifierToReadable($this->data['identifier']),
            );
        }

        foreach (array('name_schema', 'url_alias_schema') as $schema) {
            if ($this->notSetOrEmpty($this->data, $schema)) {
                $this->data[$schema] = sprintf('<%s>', $this->data['fields'][key($this->data['fields'])]->data['identifier']);
            }
        }
    }
private function setMissingDefaults()
    {
        if (!isset($this->data['contenttype_groups'])) {
            $this->data['contenttype_groups'] = array('Content');
        }

        if ($this->notSetOrEmpty($this->data, 'names')) {
            $this->data['names'] = array(
                $this->data['main_language_code'] => $this->identifierToReadable($this->data['identifier']),
            );
        }

        foreach (array('name_schema', 'url_alias_schema') as $schema) {
            if ($this->notSetOrEmpty($this->data, $schema)) {
                $this->data[$schema] = sprintf('<%s>', $this->data['fields'][key($this->data['fields'])]->data['identifier']);
            }
        }
    }
private function setMissingDefaults ( ) { if ( ! isset ( $ this -> data [ 'contenttype_groups' ] ) ) { $ this -> data [ 'contenttype_groups' ] = array ( 'Content' ) ; } if ( $ this -> notSetOrEmpty ( $ this -> data , 'names' ) ) { $ this -> data [ 'names' ] = array ( $ this -> data [ 'main_language_code' ] => $ this -> identifierToReadable ( $ this -> data [ 'identifier' ] ) , ) ; } foreach ( array ( 'name_schema' , 'url_alias_schema' ) as $ schema ) { if ( $ this -> notSetOrEmpty ( $ this -> data , $ schema ) ) { $ this -> data [ $ schema ] = sprintf ( '<%s>' , $ this -> data [ 'fields' ] [ key ( $ this -> data [ 'fields' ] ) ] -> data [ 'identifier' ] ) ; } } }
Build default values.
Build default values .