UpdaterInterface::getInstallDirectory

public UpdaterInterface::getInstallDirectory() Returns the path to the default install location for the current project. Return value string An absolute path to the default install location. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 38 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function getInstallDirectory();

entity_create

entity_create($entity_type, array $values = array()) Constructs a new entity object, without permanently saving it. \Drupal::entityTypeManager()->getStorage($entity_type)->create($values); Parameters string $entity_type: The type of the entity. array $values: (optional) An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. Return value \Drupal\Core\Entity\EntityInterface A new entity object. Deprecated in Drupal 8.0.x,

Registry::$lock

The lock backend that should be used. Type: \Drupal\Core\Lock\LockBackendInterface File core/lib/Drupal/Core/Theme/Registry.php, line 39 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected $lock;

BlockInterface::setRegion

public BlockInterface::setRegion($region) Sets the region this block is placed in. Parameters string $region: The region to place this block in. Return value $this File core/modules/block/src/BlockInterface.php, line 109 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function setRegion($region);

Tar::getArchive

public Tar::getArchive() Retrieves the tar engine itself. In some cases it may be necessary to directly access the underlying Archive_Tar object for implementation-specific logic. This is for advanced use only as it is not shared by other implementations of ArchiveInterface. Return value Archive_Tar The Archive_Tar object used by this object. File core/lib/Drupal/Core/Archiver/Tar.php, line 87 Class Tar Defines a archiver implementation for .tar files. Namespace Drupal\Core\Archiver C

comment_entity_view_display_presave

comment_entity_view_display_presave(EntityViewDisplayInterface $display) Implements hook_ENTITY_TYPE_presave() for entity_view_display entities. File core/modules/comment/comment.module, line 764 Enables users to comment on published content. Code function comment_entity_view_display_presave(EntityViewDisplayInterface $display) { // Act only on comment view displays being disabled. if ($display->isNew() || $display->getTargetEntityTypeId() !== 'comment' || $display->status()) {

FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate

public FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) Reacts to the creation of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created. File core/lib/Drupal/Core/Field/FieldStorageDefinitionListenerInterface.php, line 16 Class FieldStorageDefinitionListenerInterface Defines an interface for reacting to field storage definition c

ConfigDependencyManager::getGraph

protected ConfigDependencyManager::getGraph() Gets the dependency graph of all the config entities. Return value array The dependency graph of all the config entities. File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 305 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code protected function getGraph() { if (!isset($this->graph)) { $graph = array(); foreach ($this-&g

comment_form_field_ui_display_overview_form_alter

comment_form_field_ui_display_overview_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter(). File core/modules/comment/comment.module, line 318 Enables users to comment on published content. Code function comment_form_field_ui_display_overview_form_alter(&$form, FormStateInterface $form_state) { $route_match = \Drupal::routeMatch(); if ($form['#entity_type'] == 'comment' && $route_match->getParameter('commented_entity_type')) { $fo

Tableselect::getInfo

public Tableselect::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Table::getInfo File core/lib/Drupal/Core/Render/Element/Tableselect.php, line 58 Class Tableselect Provides a form element for a table with radios or checkboxes in left column. Namespace Drupal\Co