public function getDataEditmode()
{
$this->setElement();
if ($this->element instanceof Element\ElementInterface) {
return ["id" => $this->id, "path" => $this->element->getRealFullPath(), "elementType" => $this->type, "subtype" => $this->subtype];
}
return null;
}