TextProcessed::__construct

public TextProcessed::__construct(DataDefinitionInterface $definition, $name = NULL, TypedDataInterface $parent = NULL) Constructs a TypedData object given its definition and context. @todo When \Drupal\Core\Config\TypedConfigManager has been fixed to use class-based definitions, type-hint $definition to DataDefinitionInterface. https://www.drupal.org/node/1928868 Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition. string $name: (optional) The name of th

Connection::upsert

public Connection::upsert($table, array $options = array()) Prepares and returns an UPSERT query object. Parameters string $table: The table to use for the upsert query. array $options: (optional) An array of options on the query. Return value \Drupal\Core\Database\Query\Upsert A new Upsert query object. Overrides Connection::upsert See also \Drupal\Core\Database\Query\Upsert File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 419 Class Connection PostgreSQL implementat

_install_select_profile

_install_select_profile(&$install_state) Determines the installation profile to use in the installer. A profile will be selected in the following order of conditions: Only one profile is available. A specific profile name is requested in installation parameters: For interactive installations via request query parameters. For non-interactive installations via install_drupal() settings. A discovered profile that is a distribution. If multiple profiles are distributions, then the first discov

MenuLinkContentDeleteForm::getDeletionMessage

protected MenuLinkContentDeleteForm::getDeletionMessage() Overrides ContentEntityDeleteForm::getDeletionMessage File core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php, line 33 Class MenuLinkContentDeleteForm Provides a delete form for content menu links. Namespace Drupal\menu_link_content\Form Code protected function getDeletionMessage() { return $this->t('The menu link %title has been deleted.', array('%title' => $this->entity->label())); }

file_cron

file_cron() Implements hook_cron(). File core/modules/file/file.module, line 646 Defines a "managed_file" Form API field and a "file" field for Field module. Code function file_cron() { $age = \Drupal::config('system.file')->get('temporary_maximum_age'); $file_storage = \Drupal::entityManager()->getStorage('file'); // Only delete temporary files if older than $age. Note that automatic cleanup // is disabled if $age set to 0. if ($age) { $fids = Drupal::entityQuery('file')

PhpStreamWrapperInterface::stream_flush

public PhpStreamWrapperInterface::stream_flush() Return value bool File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 79 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function stream_flush();

DatabaseStorageExpirable::setWithExpireIfNotExists

DatabaseStorageExpirable::setWithExpireIfNotExists($key, $value, $expire) Sets a value for a given key with a time to live if it does not yet exist. Parameters string $key: The key of the data to store. mixed $value: The data to store. int $expire: The time to live for items, in seconds. Return value bool TRUE if the data was set, or FALSE if it already existed. Overrides KeyValueStoreExpirableInterface::setWithExpireIfNotExists File core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable

TableMappingInterface::getFieldColumnName

public TableMappingInterface::getFieldColumnName(FieldStorageDefinitionInterface $storage_definition, $property_name) Generates a column name for a field property. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. string $property_name: The name of the property. Return value string A string containing a generated column name for a field data table that is unique among all other fields. File core/lib/Drupal/Core/Entity/Sql/TableMap

QueryBase::sortAggregate

public QueryBase::sortAggregate($field, $function, $direction = 'ASC', $langcode = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 407 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function sortAggregate($field, $function, $direction = 'ASC', $langcode = NULL) { $alias = $this->getAggregationAlias($field, $function); $this->sortAggregate[$alias] = array( 'field' => $field, 'function' => $function,

LanguageManager::getLanguageName

public LanguageManager::getLanguageName($langcode) Produced the printed name for a language for display. Parameters string $langcode: The language code. Return value string The printed name of the language. Overrides LanguageManagerInterface::getLanguageName File core/lib/Drupal/Core/Language/LanguageManager.php, line 158 Class LanguageManager Class responsible for providing language support on language-unaware sites. Namespace Drupal\Core\Language Code public function getLanguageNam