public function slotToArray($slotName)
    {
        if (!is_string($slotName)) {
            throw new InvalidArgumentTypeException('exception_slotToArray_accepts_only_strings');
        }

        if (!array_key_exists($slotName, $this->slotManagers)) {
            return array();
        }

        $slotManager = $this->slotManagers[$slotName];

        return $slotManager->getBlockManagersCollection()->toArray();
    }
public function slotToArray($slotName)
    {
        if (!is_string($slotName)) {
            throw new InvalidArgumentTypeException('exception_slotToArray_accepts_only_strings');
        }

        if (!array_key_exists($slotName, $this->slotManagers)) {
            return array();
        }

        $slotManager = $this->slotManagers[$slotName];

        return $slotManager->getBlockManagersCollection()->toArray();
    }
public function slotToArray ( $ slotName ) { if ( ! is_string ( $ slotName ) ) { throw new InvalidArgumentTypeException ( 'exception_slotToArray_accepts_only_strings' ) ; } if ( ! array_key_exists ( $ slotName , $ this -> slotManagers ) ) { return array ( ) ; } $ slotManager = $ this -> slotManagers [ $ slotName ] ; return $ slotManager -> getBlockManagersCollection ( ) -> toArray ( ) ; }
Returns the slot manager as an array

@param  string                    $slotName
@return array
@throws \InvalidArgumentException

@api
Returns the slot manager as an array