Skip to content

Instantly share code, notes, and snippets.

View biesior's full-sized avatar

Marcus Biesioroff biesior

View GitHub Profile
@biesior
biesior / AdditionalConfiguration.php
Last active May 15, 2017 08:38
TYPO3 Custom condition to check if beLayout selected for page or its parent(s) matches required value
<?php
/**
* Condition to check if beLayout selected for page or its parent(s) matches required value
*
* @param int $layout UID of layout to check
*
* @return bool True if first `found be_layout` OR `backend_layout_next_level` matches the param
*/
function user_beLayout($layout) {