File.php in Zircon Profile 8
Same filename in this branch
- 8 vendor/symfony/validator/Constraints/File.php
- 8 vendor/symfony/http-foundation/File/File.php
- 8 core/modules/file/src/Entity/File.php
- 8 core/lib/Drupal/Core/Render/Element/File.php
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php
- 8 core/modules/file/src/Plugin/views/wizard/File.php
- 8 core/modules/file/src/Plugin/views/field/File.php
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php
- 8 core/modules/file/src/Plugin/migrate/source/d6/File.php
- 8 core/modules/file/src/Plugin/migrate/source/d7/File.php
Same filename and directory in other branches
Contains \Drupal\file\Plugin\views\wizard\File.
Namespace
Drupal\file\Plugin\views\wizardFile
core/modules/file/src/Plugin/views/wizard/File.phpView source
<?php
/**
* @file
* Contains \Drupal\file\Plugin\views\wizard\File.
*/
namespace Drupal\file\Plugin\views\wizard;
use Drupal\views\Plugin\views\wizard\WizardPluginBase;
/**
* Tests creating managed files views with the wizard.
*
* @ViewsWizard(
* id = "file_managed",
* base_table = "file_managed",
* title = @Translation("Files")
* )
*/
class File extends WizardPluginBase {
/**
* Set the created column.
*/
protected $createdColumn = 'created';
/**
* {@inheritdoc}
*/
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
// Remove the default fields, since we are customizing them here.
unset($display_options['fields']);
/* Field: File: Name */
$display_options['fields']['filename']['id'] = 'filename';
$display_options['fields']['filename']['table'] = 'file_managed';
$display_options['fields']['filename']['field'] = 'filename';
$display_options['fields']['filename']['entity_type'] = 'file';
$display_options['fields']['filename']['entity_field'] = 'filename';
$display_options['fields']['filename']['label'] = '';
$display_options['fields']['filename']['alter']['alter_text'] = 0;
$display_options['fields']['filename']['alter']['make_link'] = 0;
$display_options['fields']['filename']['alter']['absolute'] = 0;
$display_options['fields']['filename']['alter']['trim'] = 0;
$display_options['fields']['filename']['alter']['word_boundary'] = 0;
$display_options['fields']['filename']['alter']['ellipsis'] = 0;
$display_options['fields']['filename']['alter']['strip_tags'] = 0;
$display_options['fields']['filename']['alter']['html'] = 0;
$display_options['fields']['filename']['hide_empty'] = 0;
$display_options['fields']['filename']['empty_zero'] = 0;
$display_options['fields']['filename']['plugin_id'] = 'field';
$display_options['fields']['filename']['type'] = 'file_link';
return $display_options;
}
}