You are here

class RowManager in Data 8

Class RowManager.

@package Drupal\data

Hierarchy

Expanded class hierarchy of RowManager

1 string reference to 'RowManager'
data.services.yml in ./data.services.yml
data.services.yml
1 service uses RowManager
data.row_manager in ./data.services.yml
Drupal\data\RowManager

File

src/RowManager.php, line 17

Namespace

Drupal\data
View source
class RowManager implements RowManagerInterface {

  /** @var  \Drupal\Core\Database\Connection */
  protected $connection;

  /**
   * Constructor.
   */
  public function __construct(Connection $connection) {
    $this->connection = $connection;
  }

  /**
   * {@inheritdoc}
   */
  public function save($table_name, array $values) {
    $this->connection
      ->insert($table_name, $values);
  }

}

Members