public static function getDependencyForFrontend($element)
{
if ($element instanceof ElementInterface) {
return ["id" => $element->getId(), "path" => $element->getRealFullPath(), "type" => self::getElementType($element), "subtype" => $element->getType()];
}
}