[FEATURE] Add function to generate domain model string
This commit is contained in:
parent
b6b02e0394
commit
5e61f538d1
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user