Xpressengine\Config\ConfigEntity::getAttributes PHP Method

getAttributes() public method

returns current attributes
public getAttributes ( ) : array
return array
    public function getAttributes()
    {
        $this->attributes['vars'] = json_encode($this->vo);
        return $this->attributes;
    }

Usage Example

 /**
  * insert
  *
  * @param ConfigEntity $config config object
  *
  * @return ConfigEntity
  */
 protected function insert(ConfigEntity $config)
 {
     $this->conn->table($this->table)->insert($config->getAttributes());
     return $this->createModel($config->getAttributes());
 }