public function write(ModelInformationInterface $information, array $config = [])
    {
        $this->information = $information;
        $this->config      = $config;

        $this->content = [];
        $this->path    = $this->getInformationTargetPath();
        $keys          = $this->getKeysToWrite();

        $this->checkWhetherFileAlreadyExists();

        foreach ($keys as $key) {
            $this->writeKey($key);
        }

        $this->writeContentToFile();

        return $this->path;
    }
public function write(ModelInformationInterface $information, array $config = [])
    {
        $this->information = $information;
        $this->config      = $config;

        $this->content = [];
        $this->path    = $this->getInformationTargetPath();
        $keys          = $this->getKeysToWrite();

        $this->checkWhetherFileAlreadyExists();

        foreach ($keys as $key) {
            $this->writeKey($key);
        }

        $this->writeContentToFile();

        return $this->path;
    }
public function write ( ModelInformationInterface $ information , array $ config = [ ] ) { $ this -> information = $ information ; $ this -> config = $ config ; $ this -> content = [ ] ; $ this -> path = $ this -> getInformationTargetPath ( ) ; $ keys = $ this -> getKeysToWrite ( ) ; $ this -> checkWhetherFileAlreadyExists ( ) ; foreach ( $ keys as $ key ) { $ this -> writeKey ( $ key ) ; } $ this -> writeContentToFile ( ) ; return $ this -> path ; }
Writes model information basics to a cms model file.

@param ModelInformationInterface $information
@param array                     $config
@return string   path to written file
Writes model information basics to a cms model file .