load() protected method

If the entities were passed in the "choices" option, this method does not have any significant overhead. Otherwise, if a query builder was passed in the "query_builder" option, this builder is now used to construct a query which is executed. In the last case, all entities for the underlying class are fetched from the repository.
protected load ( ) : array
return array An array of choices
コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function load()
 {
     if (!$this->ajax) {
         parent::load();
     }
 }