Added the new placeholder area for global & component level placeholders. Just like customcode you can now with the placeholders generate dynamic behaviour with placeholders all over the JCB custom areas.

This commit is contained in:
2019-02-16 00:03:21 +02:00
parent d46459301c
commit 25c14b45de
84 changed files with 7147 additions and 42 deletions

View File

@ -1179,6 +1179,20 @@ abstract class ComponentbuilderHelper
return false;
}
/**
* validate that a placeholder is unique
**/
public static function validateUniquePlaceholder($string)
{
$string = self::safeString($string);
// this list may grow as we find more cases that break the compiler (just open an issue on github)
if (in_array($string, array('component', 'view', 'views')))
{
return false;
}
return true;
}
/**
* The array of dynamic content
*