Судя по коду провайдер должен наследоваться ещё от Nameable
Код |
---|
use \Bitrix\DocumentGenerator\DataProvider;
use Bitrix\DocumentGenerator\Nameable;
class DocDataProvider extends DataProvider implements Nameable {
}
|
Иначе через событие его не добавить.
\bitrix\modules\documentgenerator\lib\registry.php getFromEvent вызывает checkClassName
Код |
---|
/**
* @param string $fullClassName
* @return bool
*/
protected function checkClassName($fullClassName)
{
return (
class_exists($fullClassName) &&
is_a($fullClassName, $this->getBaseClassName(), true) &&
is_a($fullClassName, Nameable::class, true)
);
} |