在我的项目中,我有链接到它们的页面和元素.元素只能链接到一个页面.
我有一个特定的表单来选择字段掩码和许多字段.我想有一个链接到页面而不是嵌入表单的元素列表.是否可以打开模式对话框以在其中包含编辑表单,例如添加元素时?
sonata_type_collection最适合那个吗?
PageAdmin
/**
* @param FormMapper $formMapper
*/
protected function configureFormFields(FormMapper $formMapper) {
$availableApiRoutes = [];
foreach ($this->getConfigurationPool()->getContainer()->get('router')->getRouteCollection()->all() as $name => $route) {
$route = $route->compile();
if (( strstr($name, "api_") === FALSE ) &&
( strstr($name, "admin") === FALSE ) &&
( strstr($name, "ajax") === FALSE ) &&
( strstr($name, "fos") === FALSE ) &&
( strstr($name, "sonata") === FALSE ) &&
( strstr($name, "add") === FALSE ) &&
( strstr($name, "edit") === FALSE ) &&
( strstr($name, …Run Code Online (Sandbox Code Playgroud)