file_unmanaged_prepare

file_unmanaged_prepare($source, &$destination = NULL, $replace = FILE_EXISTS_RENAME) Internal function that prepares the destination for a file_unmanaged_copy or file_unmanaged_move operation. Checks if $source and $destination are valid and readable/writable. Checks that $source is not equal to $destination; if they are an error is reported. If file already exists in $destination either the call will error out, replace the file or rename the file based on the $replace parameter. Paramete

ConfigHandlerGroup

Provides a form for configuring grouping information for a Views UI handler. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterfaceclass \Drupal\views_ui\Form\Ajax\ConfigHandlerGroup File core/modules/views_ui/src/Form/Ajax/ConfigHan

ConditionInterface::condition

public ConditionInterface::condition($field, $value = NULL, $operator = NULL, $langcode = NULL) Adds a condition. Parameters string|\Drupal\Core\Entity\Query\ConditionInterface $field: mixed $value: string $operator: string $langcode: Return value ConditionInterface See also \Drupal\Core\Entity\Query\QueryInterface::condition() File core/lib/Drupal/Core/Entity/Query/ConditionInterface.php, line 37 Class ConditionInterface Defines the entity query condition interface. Namespace Drupal

MTimeProtectedFileStorage

Stores PHP code in files with securely hashed names. The goal of this class is to ensure that if a PHP file is replaced with an untrusted one, it does not get loaded. Since mtime granularity is 1 second, we cannot prevent an attack that happens within one second of the initial save(). However, it is very unlikely for an attacker exploiting an upload or file write vulnerability to also know when a legitimate file is being saved, discover its hash, undo its file permissions, and override the file

MenuTreeStorage::MAX_DEPTH

The maximum depth of a menu links tree. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 23 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code const MAX_DEPTH = 9;

FieldConfigEditForm::form

public FieldConfigEditForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 30 Class FieldConfigEditForm Provides a form for the field settings form. Namespace Drupal\field_ui\Form Code public function form(array $form, FormStateInterface $form_state) {

update.manager.inc

Administrative screens and processing functions of the Update Manager module. This allows site administrators with the 'administer software updates' permission to either upgrade existing projects, or download and install new ones, so long as the killswitch setting ('allow_authorize_operations') is not FALSE. To install new code, the administrator is prompted for either the URL of an archive file, or to directly upload the archive file. The archive is loaded into a temporary location, extracted,

Schema::addField

public Schema::addField($table, $field, $spec, $keys_new = array()) Add a new field to a table. Parameters $table: Name of the table to be altered. $field: Name of the field to be added. $spec: The field specification array, as taken from a schema definition. The specification may also contain the key 'initial', the newly created field will be set to the value of the key in all rows. This is most useful for creating NOT NULL columns with no default value in existing tables. Alternatively, the

CommentForm::getEditedFieldNames

protected CommentForm::getEditedFieldNames(FormStateInterface $form_state) Gets the names of all fields edited in the form. If the entity form customly adds some fields to the form (i.e. without using the form display), it needs to add its fields here and override flagViolations() for displaying the violations. Parameters \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value string[] An array of field names. Overrides ContentEntityForm::getEditedFieldNa

MessageInterface::getSubject

public MessageInterface::getSubject() Returns the message subject. Return value string The message subject. File core/modules/contact/src/MessageInterface.php, line 58 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getSubject();