LocalStream::stream_write

public LocalStream::stream_write($data) Support for fwrite(), file_put_contents() etc. Parameters string $data: The string to be written. Return value int The number of bytes written. Overrides PhpStreamWrapperInterface::stream_write See also http://php.net/manual/streamwrapper.stream-write.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 225 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public

ThemeSettingsForm::buildForm

public ThemeSettingsForm::buildForm(array $form, FormStateInterface $form_state, $theme = '') Parameters string $theme: The theme name. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 101 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function buildForm(array $form, FormStateInterface $form_state, $theme = '') { $form = parent::buildForm($form, $for

MenuTreeStorage::schemaDefinition

protected static MenuTreeStorage::schemaDefinition() Defines the schema for the tree table. Return value array The schema API definition for the SQL storage table. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1204 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected static function schemaDefinition() { $schema = array( 'description' => 'Contains the menu tree hierarchy.', 'fields' => array( '

MissingThemeDependencyException::getMissingThemeName

public MissingThemeDependencyException::getMissingThemeName() Gets the machine name of the missing theme. Return value string The machine name of the theme that is missing. File core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php, line 38 Class MissingThemeDependencyException Exception to be thrown when base theme for installed theme is not installed. Namespace Drupal\Core\Theme Code public function getMissingThemeName() { return $this->theme; }

Database::getLog

final public static Database::getLog($logging_key, $key = 'default') Retrieves the queries logged on for given logging key. This method also ends logging for the specified key. To get the query log to date without ending the logger request the logging object by starting it again (which does nothing to an open log key) and call methods on it as desired. Parameters string $logging_key: The logging key to log. string $key: The database connection key for which we want to log. Return value array

system_js_settings_alter

system_js_settings_alter(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_alter(). Sets values which depend on the current request, like core/drupalSettings as well as theme_token ajax state. File core/modules/system/system.module, line 667 Configuration system that lets administrators modify the workings of the site. Code function system_js_settings_alter(&$settings, AttachedAssetsInterface $assets) { // As this is being output in the final response always u

DrupalKernel::compileContainer

protected DrupalKernel::compileContainer() Compiles a new service container. Return value ContainerBuilder The compiled service container File core/lib/Drupal/Core/DrupalKernel.php, line 1166 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function compileContainer() { // We are forcing a container build so it is reasonable to assume that the // calling method knows something about the system has changed requiring the

QueryFactory

PostgreSQL specific entity query implementation. To add a new query implementation extending the default SQL one, add a service definition like pgsql.entity.query.sql and a factory class like this. The system will automatically find the relevant Query, QueryAggregate, Condition, ConditionAggregate, Tables classes in this namespace, in the namespace of the parent class and so on. So after creating an empty query factory class like this, it is possible to just drop in a class extending the base c

JsCollectionOptimizer::$grouper

A JS asset grouper. Type: \Drupal\Core\Asset\JsCollectionGrouper File core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php, line 18 Class JsCollectionOptimizer Optimizes JavaScript assets. Namespace Drupal\Core\Asset Code protected $grouper;

EntityDisplayModeFormBase::exists

public EntityDisplayModeFormBase::exists($entity_id, array $element) Determines if the display mode already exists. Parameters string|int $entity_id: The entity ID. array $element: The form element. Return value bool TRUE if the display mode exists, FALSE otherwise. File core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php, line 105 Class EntityDisplayModeFormBase Provides the generic base class for entity display mode forms. Namespace Drupal\field_ui\Form Code public functio