/** * @inheritDoc BaseSavableComponentType::defineSettings() * * @return array */ protected function defineSettings() { return array_merge(parent::defineSettings(), array('useSingleFolder' => AttributeType::Bool, 'defaultUploadLocationSource' => AttributeType::Number, 'defaultUploadLocationSubpath' => AttributeType::String, 'singleUploadLocationSource' => AttributeType::Number, 'singleUploadLocationSubpath' => AttributeType::String, 'restrictFiles' => AttributeType::Bool, 'allowedKinds' => AttributeType::Mixed)); }
/** * Set settings html. * * @return array */ protected function defineSettings() { // Default settings $settings = parent::defineSettings(); // Target field setting $settings['targetField'] = AttributeType::String; // Read-only setting $settings['readOnly'] = AttributeType::Bool; // Return settings return $settings; }