Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function setReference(Definition $definition, EncodeReferenceEvent $event)
 {
     if ($definition instanceof AbstractIcon) {
         $event->setReference('icons.' . $definition->getId());
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function setReference(Definition $definition, EncodeReferenceEvent $event)
 {
     if ($definition instanceof Vector) {
         $event->setReference('layers.vector_' . $definition->getId());
     }
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function setReference(Definition $definition, EncodeReferenceEvent $event)
 {
     if ($definition instanceof Control) {
         $event->setReference('controls.' . $definition->getId());
     }
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function setReference(Definition $definition, EncodeReferenceEvent $event)
 {
     if ($definition instanceof LayerGroup) {
         $event->setReference('layers.' . $definition->getId());
     }
 }