Programming Language PHP
Namespace Oro\Bundle\ChannelBundle\Entity
Class Channel
Method/Function setChannelType
Total Examples 1
1 code examples of PHP Oro\Bundle\ChannelBundle\Entity\Channel::setChannelType extracted from open source projects
protected function handleRequestChannelType(Channel &$channel)
{
if ($channel->getChannelType()) {
return;
}
$formData = $this->requestStack->getCurrentRequest()->get(ChannelType::NAME);
$channelType = $formData['channelType'] ?? null;
if (!$channelType) {
return;
}
$channel->setChannelType($channelType);
}