Prado\Web\UI\ActiveControls\TDropContainerEventParameter::getDroppedControl PHP Метод

getDroppedControl() публичный Метод

Compatibility method to get the dropped control
public getDroppedControl ( ) : TControl
Результат Prado\Web\UI\TControl dropped control, or null if not found
    public function getDroppedControl()
    {
        $control = null;
        $service = Prado::getApplication()->getService();
        if ($service instanceof TPageService) {
            // Find the control
            // Warning, this will not work if you have a '_' in your control Id !
            $dropControlId = str_replace(TControl::CLIENT_ID_SEPARATOR, TControl::ID_SEPARATOR, $this->_dragElementId);
            $control = $service->getRequestedPage()->findControl($dropControlId);
        }
        return $control;
    }