PHP code example of jacerider / neo_config_file

1. Go to this page and download the library: Download jacerider/neo_config_file library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jacerider / neo_config_file example snippets


$form['file'] = [
  '#type' => 'neo_config_file',
  '#title' => $this->t('File'),
  '#default_value' => $this->configuration['file'],
  '#extensions' => ['jpg', 'jpeg', 'png', 'gif'],
  // The optional filename of the uploaded file.
  '#filename' => 'my-awesome-file',
  '#dependencies' => [
    'module' => [
      'neo_style',
    ],
  ],
];