[FEATURE] Add function to generate domain model string

This commit is contained in:
Philipp Dieter 2021-06-02 19:09:22 +02:00
parent b6b02e0394
commit 5e61f538d1

View File

@ -406,6 +406,19 @@ class ActionController extends BaseController
return null;
}
/**
*
*/
protected function getDomainModelString($object)
{
$extensionName = $this->request->getControllerExtensionName();
$reflection = new \ReflectionClass($object);
return 'tx_' .
strtolower($this->request->getControllerExtensionName()) .
'_domain_model_' .
strtolower($reflection->getShortName());
}
/**
* gets error label based on field and keyword, uses predefined extensionkey
*/