Connection::open

public static Connection::open(array &$connection_options = array()) Opens a PDO connection. Parameters array $connection_options: The database connection settings array. Return value \PDO A \PDO object. Overrides Connection::open File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 77 Class Connection PostgreSQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\pgsql Code public static function open(array &$connection_o

Updater::postInstallTasks

public Updater::postInstallTasks() Returns an array of links to pages that should be visited post operation. Return value array Links which provide actions to take after the install is finished. File core/lib/Drupal/Core/Updater/Updater.php, line 397 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public function postInstallTasks() { return array(); }

telephone.module

Defines a simple telephone number field type. File core/modules/telephone/telephone.module Functions Name Description telephone_field_formatter_info_alter Implements hook_field_formatter_info_alter(). telephone_help Implements hook_help().

EntityFormDisplay::extractFormValues

public EntityFormDisplay::extractFormValues(FieldableEntityInterface $entity, array &$form, FormStateInterface $form_state) Extracts field values from the submitted widget values into the entity. This accounts for drag-and-drop reordering of field values, and filtering of empty values. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: The entity. array $form: The form structure where field elements are attached to. This might be a full form structure, or a sub-element of a l

CommentAccessControlHandler::checkAccess

protected CommentAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for

SwitchShortcutSet::$shortcutSetStorage

The shortcut set storage. Type: \Drupal\shortcut\ShortcutSetStorageInterface File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 29 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code protected $shortcutSetStorage;

Comment::releaseThreadLock

protected Comment::releaseThreadLock() Release the lock acquired for the thread in preSave(). File core/modules/comment/src/Entity/Comment.php, line 166 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code protected function releaseThreadLock() { if ($this->threadLock) { \Drupal::lock()->release($this->threadLock); $this->threadLock = ''; } }

Comment::setCreatedTime

public Comment::setCreatedTime($created) Sets the creation date of the comment. Parameters int $created: The timestamp of when the comment was created. Return value $this The class instance that this method is called on. Overrides CommentInterface::setCreatedTime File core/modules/comment/src/Entity/Comment.php, line 465 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setCreatedTime($created) { $this->set('created', $created);

RenderEvents::SELECT_PAGE_DISPLAY_VARIANT

Name of the event when selecting a page display variant to use. This event allows you to select a different page display variant to use when rendering a page. The event listener method receives a \Drupal\Core\Render\PageDisplayVariantSelectionEvent instance. See also \Drupal\Core\Render\PageDisplayVariantSelectionEvent \Drupal\Core\Render\MainContent\HtmlRenderer \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber Related topics Events Overview of event dispatch and subscribing F

UrlHelper::isExternal

public static UrlHelper::isExternal($path) Determines whether a path is external to Drupal. An example of an external path is http://example.com. If a path cannot be assessed by Drupal's menu handler, then we must treat it as potentially insecure. Parameters string $path: The internal path or external URL being linked to, such as "node/34" or "http://example.com/foo". Return value bool TRUE or FALSE, where TRUE indicates an external path. File core/lib/Drupal/Component/Utility/UrlHelper.php,