CommentType

Defines the comment type entity. Plugin annotation @ConfigEntityType( id = "comment_type", label = @Translation("Comment type"), handlers = { "form" = { "default" = "Drupal\comment\CommentTypeForm", "add" = "Drupal\comment\CommentTypeForm", "edit" = "Drupal\comment\CommentTypeForm", "delete" = "Drupal\comment\Form\CommentTypeDeleteForm" }, "list_builder" = "Drupal\comment\CommentTypeListBuilder" }, admin_permission = "administer comment types", co

Feed::baseFieldDefinitions

public static Feed::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho

template_preprocess_node

template_preprocess_node(&$variables) Prepares variables for node templates. Default template: node.html.twig. Most themes use their own copy of node.html.twig. The default is located inside "/core/modules/node/templates/node.html.twig". Look in there for the full list of variables. Parameters array $variables: An associative array containing: elements: An array of elements to display in view mode. node: The node object. view_mode: View mode; e.g., 'full', 'teaser', etc. File core/mod

ProfileForm

Form handler for the profile forms. 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\user\AccountFormclass \Drupal\user\ProfileForm File cor

EntityFormDisplay::collectRenderDisplay

public static EntityFormDisplay::collectRenderDisplay(FieldableEntityInterface $entity, $form_mode) Returns the entity_form_display object used to build an entity form. Depending on the configuration of the form mode for the entity bundle, this can be either the display object associated with the form mode, or the 'default' display. This method should only be used internally when rendering an entity form. When assigning suggested display options for a component in a given form mode, entity_get_

OptimizedPhpArrayDumper::getServiceDefinition

protected OptimizedPhpArrayDumper::getServiceDefinition(Definition $definition) Gets a service definition as PHP array. Parameters \Symfony\Component\DependencyInjection\Definition $definition: The definition to process. Return value array The service definition as PHP array. Throws \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException Thrown when the definition is marked as decorated, or with an explicit scope different from SCOPE_CONTAINER and SCOPE_PROTOTYPE. File core

CacheCollector

Default implementation for CacheCollectorInterface. By default, the class accounts for caches where calling functions might request keys that won't exist even after a cache rebuild. This prevents situations where a cache rebuild would be triggered over and over due to a 'missing' item. These cases are stored internally as a value of NULL. This means that the CacheCollector::get() method must be overridden if caching data where the values can legitimately be NULL, and where CacheCollector->ha

SelectInterface

Interface definition for a Select Query object. Hierarchy interface \Drupal\Core\Database\Query\ConditionInterface; interface \Drupal\Core\Database\Query\AlterableInterface; interface \Drupal\Core\Database\Query\ExtendableInterface; interface \Drupal\Core\Database\Query\PlaceholderInterfaceinterface \Drupal\Core\Database\Query\SelectInterface Related topics Database abstraction layer Allow the use of different database servers using the same code base. File core/lib/Drupal/Core/Database/Q

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/mysql/Connection.php, line 98 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code public static function open(array &$connection_option

EditorController

Returns responses for Editor module routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\editor\EditorController File core/modules/editor/src/EditorController.php, line 18 Namespace Drupal\editor Members Name Modifiers Type Description ControllerBase::$configFactory protected property The configura