preFill() 공개 메소드

Only fill the contenttypes passed as parameters If the parameters is empty, only fill empty tables
또한 보기: preFillSingle
public preFill ( array $contenttypes = [] ) : string
$contenttypes array
리턴 string
예제 #1
0
파일: FrontendTest.php 프로젝트: bolt/bolt
 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']);
 }