preFill() public method

Only fill the contenttypes passed as parameters If the parameters is empty, only fill empty tables
See also: preFillSingle
public preFill ( array $contenttypes = [] ) : string
$contenttypes array
return string
Example #1
0
 protected function addSomeContent()
 {
     $app = $this->getApp();
     $this->getService('config')->set('taxonomy/categories/options', ['news']);
     $prefillMock = new LoripsumMock();
     $this->setService('prefill', $prefillMock);
     $storage = new Storage($app);
     $storage->preFill(['pages']);
 }