src/View/Cell/DblistCell.php
protected function _createList(string $name) : bool
    {
        /**
         * @var \CsvMigrations\Model\Table\DblistsTable
         */
        $table = $this->loadModel('CsvMigrations.Dblists');

        if ($table->exists(['name' => $name])) {
            return false;
        }

        $entity = $table->newEntity(['name' => $name]);

        return (bool)$table->save($entity);
    }
protected function _createList(string $name) : bool
    {
        /**
         * @var \CsvMigrations\Model\Table\DblistsTable
         */
        $table = $this->loadModel('CsvMigrations.Dblists');

        if ($table->exists(['name' => $name])) {
            return false;
        }

        $entity = $table->newEntity(['name' => $name]);

        return (bool)$table->save($entity);
    }
protected function _createList ( string $ name ) : bool { /**
         * @var \CsvMigrations\Model\Table\DblistsTable
         */ $ table = $ this -> loadModel ( 'CsvMigrations.Dblists' ) ; if ( $ table -> exists ( [ 'name' => $ name ] ) ) { return false ; } $ entity = $ table -> newEntity ( [ 'name' => $ name ] ) ; return ( bool ) $ table -> save ( $ entity ) ; }
Create new list.

It will fail to create a new list if the given name already exists.

@param string $name List name
@return bool
Create new list .