2 namespace wcf\system\form\builder\field\dependency;
5 * Represents a dependency that requires the value of a field not to be empty.
7 * @author Matthias Schmidt
8 * @copyright 2001-2018 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package WoltLabSuite\Core\System\Form\Builder\Field\Dependency
13 class NonEmptyFormFieldDependency extends AbstractFormFieldDependency {
17 protected $templateName = '__nonEmptyFormFieldDependency';
22 public function checkDependency() {
23 return !empty($this->getField()->getValue());