예제 #1
0
파일: Object.php 프로젝트: josemrc/ae2web
 /**
  * {@inheritdoc}
  */
 public function getCollection()
 {
     if (is_null($this->collection) || !$this->collection instanceof Collection) {
         $this->collection = \Drupal::service('openlayers.Types')->createInstance('Collection');
         $this->collection->import($this->optionsToObjects());
         $this->collection->append($this);
     }
     return $this->collection;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getCollection()
 {
     if (!$this->collection instanceof Collection) {
         $this->collection = \Drupal::service('openlayers.Types')->createInstance('Collection');
         $this->collection->append($this);
         $this->buildCollection();
     }
     return $this->collection;
 }