/** * {@inheritdoc} */ public function getData(IFormElement $element) { $dataSource = $element->getDataSource(); if ($dataSource && $this->data->has($dataSource)) { return $this->data->get($dataSource); } return null; }
/** * {@inheritdoc} */ public function getData(IFormElement $element) { $dataSource = $element->getDataSource(); if ($dataSource && isset($this->data[$dataSource])) { return $this->data[$dataSource]; } return null; }
/** * {@inheritdoc} */ public function getValidatorsConfig(IFormElement $element) { if ($dataSource = $element->getDataSource()) { $property = $this->data->getPropertyByPath($dataSource); return $property->getField()->getValidatorsConfig($property->getLocaleId()); } return []; }