$requirements['feeds_xsltparser_php_domdocument']['description']=t('The feeds XSLT pipeline parser module requires the DOMDocument class to be available. Check the configure command at the <a href="@link-phpinfo">PHP info page</a>.',['@link-phpinfo'=>\Drupal\Core\Url::fromRoute('system.php')]);
$requirements['feeds_xsltparser_php_domdocument']['description']=t('The feeds XSLT pipeline parser module requires the DOMDocument class to be available. Check the configure command at the <a href="@link-phpinfo">PHP info page</a>.',['@link-phpinfo'=>Url::fromRoute('system.php')]);
}
$requirements['feeds_xsltparser_php_xsl']=[
@@ -28,7 +31,7 @@ function feeds_xsltparser_requirements($phase) {
$requirements['feeds_xsltparser_php_xsl']['description']=t('The feeds XSLT pipeline parser module requires the PHP XSL extension to be available. Check the configure command at the <a href="@link-phpinfo">PHP info page</a>.',['@link-phpinfo'=>\Drupal\Core\Url::fromRoute('system.php')]);
$requirements['feeds_xsltparser_php_xsl']['description']=t('The feeds XSLT pipeline parser module requires the PHP XSL extension to be available. Check the configure command at the <a href="@link-phpinfo">PHP info page</a>.',['@link-phpinfo'=>Url::fromRoute('system.php')]);
@@ -25,7 +26,8 @@ class XsltPipelineParserForm extends ExternalPluginFormBase {
$xslt_dir=$this->configGetXsltDirectory();
if($xslt_dir===FALSE){
$count=0;
}else{
}
else{
$repository=newXSLTPipeRepository($xslt_dir);
$config=$repository->config();
$fieldmap=$repository->extractFieldmap($config);
@@ -40,7 +42,8 @@ class XsltPipelineParserForm extends ExternalPluginFormBase {
$this->t('In order to create pipelines upload your XSLT files into the specified directory. If you place folders containing XSLT files under the XSLT pipeline path, the stylesheets will be executed in alphabetic order, each operating on the result of its predecessor.').'<br/>'.
$this->t('Each pipeline is exposed as a source field in the mapping section'),
];
}else{
}
else{
$items=$fieldmap['mapper']['items'];
$pipes=[];
foreach($fieldLabelsas$label){
@@ -56,15 +59,13 @@ class XsltPipelineParserForm extends ExternalPluginFormBase {
return$form;
}
/**
* Returns a string describing the given field extractor fragemnt from a
* pipeline config. Typically you use this to generate help text. See
* FeedsXSLTPipelineParser:configForm for an example of how this function
@@ -94,14 +95,15 @@ class XsltPipelineParserForm extends ExternalPluginFormBase {
$output.=' ';
$output.=$this->t('Input gets preprocessed using @filetext %files, counting and value extraction is done on the result obtained form the preprocessor.',[
'@filetext'=>$this->formatPlural(count($preprocs),'stylesheet','stylesheet chain comprised of the files'),