Example #1
0
 /**
  * Find elements parent
  *
  * @param ElementInterface $elm
  *
  * @return ElementInterface|null
  */
 public function getParent(ElementInterface $elm)
 {
     $id = strtolower($elm->getParent());
     if (isset($this->elements[$id])) {
         return $this->elements[$id];
     }
     return null;
 }