lib/Serializer/Normalizer/V1/LayoutNormalizer.php
private function getAllowedBlocks(Zone $zone, LayoutTypeInterface $layoutType)
    {
        if ($layoutType->hasZone($zone->getIdentifier())) {
            $layoutTypeZone = $layoutType->getZone($zone->getIdentifier());
            $allowedBlockDefinitions = $layoutTypeZone->getAllowedBlockDefinitions();

            if (count($allowedBlockDefinitions) > 0) {
                return $allowedBlockDefinitions;
            }
        }

        return true;
    }
private function getAllowedBlocks(Zone $zone, LayoutTypeInterface $layoutType)
    {
        if ($layoutType->hasZone($zone->getIdentifier())) {
            $layoutTypeZone = $layoutType->getZone($zone->getIdentifier());
            $allowedBlockDefinitions = $layoutTypeZone->getAllowedBlockDefinitions();

            if (count($allowedBlockDefinitions) > 0) {
                return $allowedBlockDefinitions;
            }
        }

        return true;
    }
private function getAllowedBlocks ( Zone $ zone , LayoutTypeInterface $ layoutType ) { if ( $ layoutType -> hasZone ( $ zone -> getIdentifier ( ) ) ) { $ layoutTypeZone = $ layoutType -> getZone ( $ zone -> getIdentifier ( ) ) ; $ allowedBlockDefinitions = $ layoutTypeZone -> getAllowedBlockDefinitions ( ) ; if ( count ( $ allowedBlockDefinitions ) > 0 ) { return $ allowedBlockDefinitions ; } } return true ; }
Returns all allowed block definitions from provided zone or
true if all block definitions are allowed.

@param \Netgen\BlockManager\API\Values\Layout\Zone $zone
@param \Netgen\BlockManager\Layout\Type\LayoutTypeInterface $layoutType

@return string[]|bool
Returns all allowed block definitions from provided zone or true if all block definitions are allowed .