FileInterface::setFilename

public FileInterface::setFilename($filename) Sets the name of the file. Parameters string $filename: The file name that corresponds to this file. May differ from the basename of the URI and changing the filename does not change the URI. File core/modules/file/src/FileInterface.php, line 34 Class FileInterface Defines getter and setter methods for file entity base fields. Namespace Drupal\file Code public function setFilename($filename);

CachedStorage::getCollectionPrefix

protected CachedStorage::getCollectionPrefix() Returns a cache ID prefix to use for the collection. Return value string The cache ID prefix. File core/lib/Drupal/Core/Config/CachedStorage.php, line 294 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected function getCollectionPrefix() { $collection = $this->storage->getCollectionName(); if ($collection == StorageInterface::DEFAULT_COLLECTION) { return ''; } return $collection .

ConfigImportSubscriber::getThemeData

protected ConfigImportSubscriber::getThemeData() Gets theme data. Return value \Drupal\Core\Extension\Extension[] File core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 287 Class ConfigImportSubscriber Config import subscriber for config import events. Namespace Drupal\Core\EventSubscriber Code protected function getThemeData() { if (!isset($this->themeData)) { $this->themeData = $this->themeHandler->rebuildThemeData(); } return $this->them

FieldStorageConfigListBuilder::$fieldTypeManager

The field type manager. Type: \Drupal\Core\Field\FieldTypePluginManagerInterface File core/modules/field_ui/src/FieldStorageConfigListBuilder.php, line 47 Class FieldStorageConfigListBuilder Defines a class to build a listing of fields. Namespace Drupal\field_ui Code protected $fieldTypeManager;

BaseFieldDefinition::getCardinality

public BaseFieldDefinition::getCardinality() Returns the maximum number of items allowed for the field. Possible values are positive integers or FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. Return value int The field cardinality. Overrides FieldStorageDefinitionInterface::getCardinality File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 257 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function getCardinalit

NodePreviewController::view

public NodePreviewController::view(EntityInterface $node_preview, $view_mode_id = 'full', $langcode = NULL) Provides a page to render a single entity. Parameters \Drupal\Core\Entity\EntityInterface $_entity: The Entity to be rendered. Note this variable is named $_entity rather than $entity to prevent collisions with other named placeholders in the route. string $view_mode: (optional) The view mode that should be used to display the entity. Defaults to 'full'. Return value array A render arra

file_requirements

file_requirements($phase) Implements hook_requirements(). Display information about getting upload progress bars working. File core/modules/file/file.install, line 65 Install, update and uninstall functions for File module. Code function file_requirements($phase) { $requirements = array(); // Check the server's ability to indicate upload progress. if ($phase == 'runtime') { $description = NULL; $implementation = file_progress_implementation(); $server_software = \Drupal::re

ConfigEntityInterface::onDependencyRemoval

public ConfigEntityInterface::onDependencyRemoval(array $dependencies) Informs the entity that entities it depends on will be deleted. This method allows configuration entities to remove dependencies instead of being deleted themselves. Configuration entities can use this method to avoid being unnecessarily deleted during an extension uninstallation. For example, entity displays remove references to widgets and formatters if the plugin that supplies them depends on a module that is being uninst

FieldStorageConfigListBuilder::createInstance

public static FieldStorageConfigListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Compo

Extension::getFilename

public Extension::getFilename() Returns the filename of the extension's info file. Return value string File core/lib/Drupal/Core/Extension/Extension.php, line 108 Class Extension Defines an extension (file) object. Namespace Drupal\Core\Extension Code public function getFilename() { return basename($this->pathname); }