ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LangValidator.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 use DataFetcher;
29
31
32 public function __construct(
34 ) {
35 $this->data_helper = $data_helper;
36 }
37
38 public function isValid(
39 ElementInterface $element,
40 bool $ignore_marker
41 ): bool {
42 return in_array(
43 $this->dataValue($element, $ignore_marker),
44 iterator_to_array($this->data_helper->getAllLanguages())
45 );
46 }
47}
isValid(ElementInterface $element, bool $ignore_marker)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...