public function getDataEditmode() { if ($this->o instanceof Element\ElementInterface) { return ["id" => $this->id, "type" => $this->getObjectType(), "subtype" => $this->subtype]; } return null; }