CommentLazyBuilders::$entityManager

The entity manager service. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/comment/src/CommentLazyBuilders.php, line 24 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $entityManager;

Schema::fieldSetDefault

public Schema::fieldSetDefault($table, $field, $default) Set the default value for a field. Parameters $table: The table to be altered. $field: The field to be altered. $default: Default value to be set. NULL for 'default NULL'. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetDefault File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 434 Class Schema MySQL implementation of \Drupal\Core\

PhpTransliteration

Implements transliteration without using the PECL extensions. Transliterations are done character-by-character, by looking up non-US-ASCII characters in a transliteration database. The database comes from two types of files, both of which are searched for in the PhpTransliteration::$dataDirectory directory. First, language-specific overrides are searched (see PhpTransliteration::readLanguageOverrides()). If there is no language-specific override for a character, the generic transliteration char

ModerationStateTransitionListBuilder::buildForm

public ModerationStateTransitionListBuilder::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides DraggableListBuilder::buildForm File core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 109 Class ModerationStateTransitionListBui

CommentTypeDeleteForm::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/modules/comment/src/Form/CommentTypeDeleteForm.php, line 45 Class CommentTypeDeleteForm Provides a confirmation form for deleting a comment type entity. Namespace Drupal\comment\Form Code protected $logger;

QueryBase::aggregate

public QueryBase::aggregate($field, $function, $langcode = NULL, &$alias = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 379 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function aggregate($field, $function, $langcode = NULL, &$alias = NULL) { if (!isset($alias)) { $alias = $this->getAggregationAlias($field, $function); } $this->aggregate[$alias] = array( 'field' => $field, 'function'

views_field_default_views_data

views_field_default_views_data(FieldStorageConfigInterface $field_storage) Default views data implementation for a field. Parameters \Drupal\field\FieldStorageConfigInterface $field_storage: The field definition. Return value array The default views data for the field. File core/modules/views/views.views.inc, line 287 Provide views data that isn't tied to any other module. Code function views_field_default_views_data(FieldStorageConfigInterface $field_storage) { $data = array(); // Che

Feed

Defines the aggregator feed entity class. Plugin annotation @ContentEntityType( id = "aggregator_feed", label = @Translation("Aggregator feed"), handlers = { "storage" = "Drupal\aggregator\FeedStorage", "storage_schema" = "Drupal\aggregator\FeedStorageSchema", "view_builder" = "Drupal\aggregator\FeedViewBuilder", "access" = "Drupal\aggregator\FeedAccessControlHandler", "views_data" = "Drupal\aggregator\AggregatorFeedViewsData", "form" = { "default" = "Drupal\

ContentTranslationDeleteForm

Delete translation form for content_translation module. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase i

File::setFilename

public File::setFilename($filename) Sets the name of the file. Parameters string $filename: The file name that corresponds to this file. May differ from the basename of the URI and changing the filename does not change the URI. Overrides FileInterface::setFilename File core/modules/file/src/Entity/File.php, line 50 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function setFilename($filename) { $this->get('filename')->value = $filename; }