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