db_truncate

db_truncate($table, array $options = array()) Returns a new TruncateQuery object for the active database. Parameters string $table: The table from which to truncate. array $options: An array of options to control how the query operates. Return value \Drupal\Core\Database\Query\Truncate A new Truncate object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call truncate()

EntityTypeManager::$stringTranslation

The string translation service. Type: \Drupal\Core\StringTranslation\TranslationInterface File core/lib/Drupal/Core/Entity/EntityTypeManager.php, line 52 Class EntityTypeManager Manages entity type plugin definitions. Namespace Drupal\Core\Entity Code protected $stringTranslation;

FormElementBase::create

public static FormElementBase::create(TypedDataInterface $schema) Creates a form element instance from a schema definition. Parameters \Drupal\Core\TypedData\TypedDataInterface $schema: The configuration schema. Return value static Overrides ElementInterface::create File core/modules/config_translation/src/FormElement/FormElementBase.php, line 46 Class FormElementBase Provides a common base class for form elements. Namespace Drupal\config_translation\FormElement Code public static fu

StringDatabaseStorage::dbFieldTable

protected StringDatabaseStorage::dbFieldTable($field) Gets table alias for field. Parameters string $field: One of the field names of the locales_source, locates_location, locales_target tables to find the table alias for. Return value string One of the following values: 's' for "source", "context", "version" (locales_source table fields). 'l' for "type", "name" (locales_location table fields) 't' for "language", "translation", "customized" (locales_target table fields) File core/modules/lo

FormBuilder::executeValidateHandlers

public FormBuilder::executeValidateHandlers(&$form, FormStateInterface &$form_state) Executes custom validation handlers for a given form. Button-specific handlers are checked first. If none exist, the function falls back to form-level handlers. Parameters $form: An associative array containing the structure of the form. $form_state: The current state of the form. If the user submitted the form by clicking a button with custom handler functions defined, those handlers will be stored he

Container::set

public Container::set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) Overrides Container::set File core/lib/Drupal/Core/DependencyInjection/Container.php, line 16 Class Container Extends the Drupal container to set the service ID on the created object. Namespace Drupal\Core\DependencyInjection Code public function set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) { parent::set($id, $service, $scope); // Ensure that the _serviceId property is set on syn

db_insert

db_insert($table, array $options = array()) Returns a new InsertQuery object for the active database. Parameters string $table: The table into which to insert. array $options: An array of options to control how the query operates. Return value \Drupal\Core\Database\Query\Insert A new Insert object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call insert() on it. For e

BookOutlineStorageInterface::countOriginalLinkChildren

public BookOutlineStorageInterface::countOriginalLinkChildren($original) Count the number of original link children. Parameters array $original: The book link array. Return value int Number of children. File core/modules/book/src/BookOutlineStorageInterface.php, line 154 Class BookOutlineStorageInterface Defines a common interface for book outline storage classes. Namespace Drupal\book Code public function countOriginalLinkChildren($original);

ConfigMapperInterface::getDeleteRoute

public ConfigMapperInterface::getDeleteRoute() Returns the route object for the translation deletion route. Return value \Symfony\Component\Routing\Route The route object for the translation page. File core/modules/config_translation/src/ConfigMapperInterface.php, line 159 Class ConfigMapperInterface Defines an interface for configuration mapper. Namespace Drupal\config_translation Code public function getDeleteRoute();

CommentTranslationHandler::entityFormEntityBuild

public CommentTranslationHandler::entityFormEntityBuild($entity_type, EntityInterface $entity, array $form, FormStateInterface $form_state) Entity builder method. Parameters string $entity_type: The type of the entity. \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being built. Overrides ContentTranslationHandler::entityFormEntityBuild See also \Drupal\content_translation\ContentTranslationHandler::entityFormAlter() File core/modules/comment/src/CommentTranslationHandle