/** * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection */ protected function getArgDefinitions() { $imageCollection = parent::getArgDefinitions(); $collection = new ArgumentCollection(); foreach ($imageCollection as $argument) { if (!in_array($argument->name, $this->possible_sources) and $argument->name != 'source') { $collection->addArgument($argument); } } return $collection; }