Bundle/WidgetBundle/Helper/WidgetHelper.php
public function isWidgetAllowedForSlot(Widget $widget, $slot)
    {
        $widgetName = $this->getWidgetName($widget);
        $slots = $this->slots;

        return !empty($slots[$slot]) && (array_key_exists($widgetName, $slots[$slot]['widgets']));
    }
public function isWidgetAllowedForSlot(Widget $widget, $slot)
    {
        $widgetName = $this->getWidgetName($widget);
        $slots = $this->slots;

        return !empty($slots[$slot]) && (array_key_exists($widgetName, $slots[$slot]['widgets']));
    }
public function isWidgetAllowedForSlot ( Widget $ widget , $ slot ) { $ widgetName = $ this -> getWidgetName ( $ widget ) ; $ slots = $ this -> slots ; return ! empty ( $ slots [ $ slot ] ) && ( array_key_exists ( $ widgetName , $ slots [ $ slot ] [ 'widgets' ] ) ) ; }
check if widget is allowed for slot.

@param Widget $widget
@param string $slot

@return bool
check if widget is allowed for slot .